1 | <?php |
||
26 | abstract class AbstractResourceSupport implements ResourceInterface, RelatedResourceInterface, ActionedResourceInterface |
||
27 | { |
||
28 | /** |
||
29 | * @var \SplObjectStorage|RelationInterface[] |
||
30 | */ |
||
31 | private $relations; |
||
32 | |||
33 | /** |
||
34 | * @var \SplObjectStorage|ActionInterface[] |
||
35 | */ |
||
36 | private $actions; |
||
37 | |||
38 | /** |
||
39 | * Constructor. |
||
40 | */ |
||
41 | 26 | public function __construct() |
|
46 | |||
47 | /** |
||
48 | * {@inheritdoc} |
||
49 | */ |
||
50 | 8 | public function addRelation(RelationInterface $relation): void |
|
54 | |||
55 | /** |
||
56 | * {@inheritdoc} |
||
57 | */ |
||
58 | 9 | public function getRelations(): RelationCollection |
|
62 | |||
63 | /** |
||
64 | * {@inheritdoc} |
||
65 | */ |
||
66 | 1 | public function removeRelation(RelationInterface $relation): void |
|
70 | |||
71 | /** |
||
72 | * {@inheritdoc} |
||
73 | */ |
||
74 | 4 | public function addAction(ActionInterface $action): void |
|
78 | |||
79 | /** |
||
80 | * {@inheritdoc} |
||
81 | */ |
||
82 | 6 | public function getActions(): ActionCollection |
|
86 | |||
87 | /** |
||
88 | * {@inheritdoc} |
||
89 | */ |
||
90 | 1 | public function removeAction(ActionInterface $action): void |
|
94 | } |
||
95 |