YetORM\Reflection\EntityProperty::__construct PHP Method

__construct() public method

public __construct ( EntityType $reflection, string $name, boolean $readonly, string $type, string $description = NULL )
$reflection EntityType
$name string
$readonly boolean
$type string
$description string
    public function __construct(EntityType $reflection, $name, $readonly, $type, $description = NULL)
    {
        $this->reflection = $reflection;
        $this->name = (string) $name;
        $this->readonly = (bool) $readonly;
        $this->type = (string) $type;
        $this->description = $description === NULL ? NULL : (string) $description;
    }

Usage Example

Esempio n. 1
0
 /**
  * @param  EntityType $reflection
  * @param  string $name
  * @param  bool $readonly
  * @param  string $type
  * @param  string $column
  * @param  bool $nullable
  * @param  string $description
  */
 public function __construct($reflection, $name, $readonly, $type, $column, $nullable, $description = NULL)
 {
     parent::__construct($reflection, $name, $readonly, $type, $description);
     $this->column = (string) $column;
     $this->nullable = (bool) $nullable;
 }