| Total Complexity | 2 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | abstract class AbstractEntity implements Entity |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @var Identity |
||
| 25 | */ |
||
| 26 | protected $identity; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * AbstractEntity constructor. |
||
| 30 | * |
||
| 31 | * @param Identity $identity |
||
| 32 | */ |
||
| 33 | final protected function __construct(Identity $identity) |
||
| 34 | { |
||
| 35 | $this->identity = $identity; |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * {@inheritdoc} |
||
| 40 | */ |
||
| 41 | final public function getIdentity(): Identity |
||
| 44 | } |
||
| 45 | } |
||
| 46 |