for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* aggregate (https://github.com/phpgears/aggregate).
* Aggregate base.
*
* @license MIT
* @link https://github.com/phpgears/aggregate
* @author Julián Gutiérrez <[email protected]>
*/
declare(strict_types=1);
namespace Gears\Aggregate;
use Gears\Identity\Identity;
/**
* Abstract entity class.
abstract class AbstractEntity implements Entity
{
* @var Identity
protected $identity;
* AbstractEntity constructor.
* @param Identity $identity
public function __construct(Identity $identity)
$this->identity = $identity;
}
* {@inheritdoc}
final public function getIdentity(): Identity
return $this->identity;