Attribute.php
30 lines
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace AC\Setting\Type; |
| 6 | |
| 7 | final class Attribute |
| 8 | { |
| 9 | private string $name; |
| 10 | |
| 11 | private string $value; |
| 12 | |
| 13 | public function __construct(string $name, string $value) |
| 14 | { |
| 15 | $this->name = $name; |
| 16 | $this->value = $value; |
| 17 | } |
| 18 | |
| 19 | public function get_name(): string |
| 20 | { |
| 21 | return $this->name; |
| 22 | } |
| 23 | |
| 24 | public function get_value(): string |
| 25 | { |
| 26 | return $this->value; |
| 27 | } |
| 28 | |
| 29 | } |
| 30 |