| 1 | <?php |
| 2 | /** |
| 3 | * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. |
| 4 | * SPDX-License-Identifier: Apache-2.0. |
| 5 | */ |
| 6 | namespace AWS\CRT\Auth; |
| 7 | |
| 8 | use AWS\CRT\NativeResource as NativeResource; |
| 9 | |
| 10 | /** |
| 11 | * Base class for credentials providers |
| 12 | */ |
| 13 | abstract class CredentialsProvider extends NativeResource { |
| 14 | |
| 15 | function __construct(array $options = []) { |
| 16 | parent::__construct(); |
| 17 | } |
| 18 | |
| 19 | function __destruct() { |
| 20 | self::$crt->credentials_provider_release($this->release()); |
| 21 | parent::__destruct(); |
| 22 | } |
| 23 | } |