/** * @param array $values * @throws \obo\Exceptions\Exception * @return void */ public function process(array $values) { parent::process($values); $propertyNameForSoftDelete = "deleted"; if (isset($values[0])) { if (is_string($values[0])) { $propertyNameForSoftDelete = $values[0]; } else { if (is_bool($values[0])) { if (!$values[0]) { $propertyNameForSoftDelete = ""; } } else { throw new \obo\Exceptions\BadAnnotationException("Annotation '" . self::name() . "' expects single parameter of data type string or boolean"); } } } $this->entityInformation->propertyNameForSoftDelete = $propertyNameForSoftDelete; }
/** * @param array $values * @return void */ public function process(array $values) { parent::process($values); $this->entityInformation->primaryPropertyName = $values[0]; }
/** * @param array $values * @return void */ public function process(array $values) { parent::process($values); $this->entityInformation->name = $values[0]; }