| 1 | <?php |
||
| 23 | class Relation implements RelationInterface |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * @var string |
||
| 27 | */ |
||
| 28 | private $name; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @var HrefInterface |
||
| 32 | */ |
||
| 33 | private $href; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @var array |
||
| 37 | */ |
||
| 38 | private $attributes; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Constructor. |
||
| 42 | * |
||
| 43 | * @param string $name |
||
| 44 | * @param HrefInterface $href |
||
| 45 | * @param array $attributes |
||
| 46 | */ |
||
| 47 | 6 | public function __construct(string $name, HrefInterface $href, array $attributes = []) |
|
| 53 | |||
| 54 | /** |
||
| 55 | * {@inheritdoc} |
||
| 56 | */ |
||
| 57 | 2 | public function getName(): string |
|
| 61 | |||
| 62 | /** |
||
| 63 | * {@inheritdoc} |
||
| 64 | */ |
||
| 65 | 3 | public function getHref(): HrefInterface |
|
| 69 | |||
| 70 | /** |
||
| 71 | * {@inheritdoc} |
||
| 72 | */ |
||
| 73 | 1 | public function setHref(HrefInterface $href): void |
|
| 77 | |||
| 78 | /** |
||
| 79 | * {@inheritdoc} |
||
| 80 | */ |
||
| 81 | 3 | public function getAttributes(): array |
|
| 85 | |||
| 86 | /** |
||
| 87 | * {@inheritdoc} |
||
| 88 | */ |
||
| 89 | 1 | public function setAttributes(array $attributes): void |
|
| 93 | } |
||
| 94 |