protected function guardRequiredState() { parent::guardRequiredState(); Assertion::regex($this->projection_type, '#^([a-z][a-z_-]+(?<!_-)\\.){2}[a-z][a-z_]+(?<!_)::projection\\.[a-z][a-z_]+(?<!_)$#'); Assertion::isArray($this->data); Assertion::regex($this->projection_identifier, '/[\\w\\.\\-_]{1,128}\\-\\w{8}\\-\\w{4}\\-\\w{4}\\-\\w{4}\\-\\w{12}\\-\\w{2}_\\w{2}\\-\\d+/'); }
protected function guardRequiredState() { parent::guardRequiredState(); Assertion::regex($this->aggregate_root_type, '#^([a-z][a-z_-]+(?<![_-])\\.){2}[a-z][a-z_-]+(?<![_-])$#'); Assertion::integer($this->seq_number); Assertion::isInstanceOf($this->embedded_entity_events, EmbeddedEntityEventList::CLASS); Assertion::regex($this->aggregate_root_identifier, '/[\\w\\.\\-_]{1,128}\\-\\w{8}\\-\\w{4}\\-\\w{4}\\-\\w{4}\\-\\w{12}\\-\\w{2}_\\w{2}\\-\\d+/'); }
protected function guardRequiredState() { parent::guardRequiredState(); Assertion::isArray($this->failed_job_state); }