Prooph\EventStore\Aggregate\AggregateType::__construct PHP Метод

__construct() приватный Метод

private __construct ( $aggregateType )
$aggregateType
    private function __construct($aggregateType)
    {
        if (!is_string($aggregateType) || empty($aggregateType)) {
            throw new Exception\InvalidArgumentException('AggregateType must be a non empty string');
        }
        $this->aggregateType = $aggregateType;
    }