| 1 | <?php |
||
| 23 | abstract class AbstractIdentityNode implements IdentityNode |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * @var string |
||
| 27 | */ |
||
| 28 | private $type; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @var int |
||
| 32 | */ |
||
| 33 | private $id; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * AbstractIdentityNode constructor. |
||
| 37 | * |
||
| 38 | * @param string $type |
||
| 39 | * @param int $id |
||
| 40 | */ |
||
| 41 | public function __construct($type, $id) |
||
| 58 | |||
| 59 | /** |
||
| 60 | * Returns Identity type |
||
| 61 | * |
||
| 62 | * @return string |
||
| 63 | */ |
||
| 64 | public function getType() |
||
| 68 | |||
| 69 | /** |
||
| 70 | * Returns Identity id |
||
| 71 | * |
||
| 72 | * @return int |
||
| 73 | */ |
||
| 74 | public function getId() |
||
| 78 | |||
| 79 | /** |
||
| 80 | * Returns string representation of identity |
||
| 81 | * |
||
| 82 | * @return string |
||
| 83 | */ |
||
| 84 | public function __toString() |
||
| 92 | } |
||
| 93 |