/** * * @param String $name * @param String $type * @return Morph_Property_HasMany */ public function __construct($name, $type) { $this->Type = $type; $this->Value = new Morph_Collection(); $this->Value->setPermissableType($type); parent::__construct($name); }
/** * * @param string $name * @param string $type the classname this property should hold * @param $default * @return Morph_Property_hasOne */ public function __construct($name) { parent::__construct($name, null); }
/** * @param string $name * @param float $default * @param float $minimum * @param float $maximum */ public function __construct($name, $default = null, $minimum = null, $maximum = null) { parent::__construct($name, $default); $this->Minimum = $minimum; $this->Maximum = $maximum; }
/** * @param string $Name * @param string $Default * @param integer $MaximumLength */ public function __construct($name, $default = null, $maximumLength = null) { parent::__construct($name, $default); $this->MaximumLength = $maximumLength; }
/** * * @param string $name * @param mixed $default * @param array $enums An array of valid enum values * @return ar_Property_Enum */ public function __construct($name, $default, array $enums) { $this->Enums = $enums; parent::__construct($name, $default); }
/** * Creates a property to contain a reference to another Morph_Object * * @param string $name The name to associate with this property * @param string $type The class that this property should contain * @return Morph_Object */ public function __construct($name, $type) { $this->Type = $type; parent::__construct($name); }
/** * * @param string $name * @param string $type the classname this property should hold * @param $default * @return Morph_Property_hasOne */ public function __construct($name, $type, Morph_Object $default = null) { $this->Type = $type; $this->isPermissableType($default); parent::__construct($name, $default); }