/** * @param $value string * @param $property Reflection_Property ie the contextual Reflection_Property object */ public function __construct($value, Reflection_Property $property) { parent::__construct($value); // default value for @null is true when the property links to a non mandatory object if (!$this->value && !$property->getAnnotation('mandatory')->value && $property->getAnnotation('link')->value == Link_Annotation::OBJECT) { $this->value = true; } }
/** * @param $value string * @param $property Interfaces\Reflection_Property */ public function __construct($value, Interfaces\Reflection_Property $property) { /** @noinspection PhpUndefinedMethodInspection @extends Annotation */ parent::__construct($value); $this->property = $property; }