1 | <?php |
||
19 | abstract class Actor extends Object |
||
20 | { |
||
21 | /** |
||
22 | * The actor's {@link InverseFunctionalIdentifier inverse functional identifier} |
||
23 | * |
||
24 | * @var InverseFunctionalIdentifier|null |
||
25 | */ |
||
26 | private $iri; |
||
27 | |||
28 | /** |
||
29 | * Name of the {@link Agent} or {@link Group} |
||
30 | * @var string|null |
||
31 | */ |
||
32 | private $name; |
||
33 | |||
34 | /** |
||
35 | * @param InverseFunctionalIdentifier|null $iri |
||
36 | * @param string|null $name |
||
37 | */ |
||
38 | 15 | public function __construct(InverseFunctionalIdentifier $iri = null, $name = null) |
|
43 | |||
44 | /** |
||
45 | * Returns the Actor's {@link InverseFunctionalIdentifier inverse functional identifier}. |
||
46 | * |
||
47 | * @return InverseFunctionalIdentifier|null The inverse functional identifier |
||
48 | */ |
||
49 | 19 | public function getInverseFunctionalIdentifier() |
|
53 | |||
54 | /** |
||
55 | * Returns the name of the {@link Agent} or {@link Group}. |
||
56 | * |
||
57 | * @return string|null The name |
||
58 | */ |
||
59 | public function getName() |
||
63 | |||
64 | /** |
||
65 | * Checks if another actor is equal. |
||
66 | * |
||
67 | * Two actors are equal if and only if all of their properties are equal. |
||
68 | * |
||
69 | * @param Object $actor The actor to compare with |
||
70 | * |
||
71 | * @return bool True if the actors are equal, false otherwise |
||
72 | */ |
||
73 | 26 | public function equals(Object $actor) |
|
97 | } |
||
98 |