wp-pay-gateways /
mollie
| 1 | <?php |
||
| 2 | /** |
||
| 3 | * Base Resource |
||
| 4 | * |
||
| 5 | * @author Pronamic <[email protected]> |
||
| 6 | * @copyright 2005-2020 Pronamic |
||
| 7 | * @license GPL-3.0-or-later |
||
| 8 | * @package Pronamic\WordPress\Pay\Gateways\Mollie |
||
| 9 | */ |
||
| 10 | |||
| 11 | namespace Pronamic\WordPress\Pay\Gateways\Mollie; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * Base Resource |
||
| 15 | * |
||
| 16 | * @link https://github.com/mollie/mollie-api-php/blob/v2.25.0/src/Resources/BaseResource.php |
||
| 17 | * @author Remco Tolsma |
||
| 18 | * @version 2.1.0 |
||
| 19 | * @since 2.1.0 |
||
| 20 | */ |
||
| 21 | abstract class BaseResource { |
||
| 22 | /** |
||
| 23 | * The resource unique identifier. |
||
| 24 | * |
||
| 25 | * @var string |
||
| 26 | */ |
||
| 27 | private $id; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Construct base resource. |
||
| 31 | * |
||
| 32 | * @param string $id Identifier. |
||
| 33 | */ |
||
| 34 | public function __construct( $id ) { |
||
| 35 | $this->id = $id; |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Get created at. |
||
| 40 | * |
||
| 41 | * @return DateTimeInterface |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 42 | */ |
||
| 43 | public function get_id() { |
||
| 44 | return $this->id; |
||
|
0 ignored issues
–
show
|
|||
| 45 | } |
||
| 46 | } |
||
| 47 |