Пример #1
0
 public function __construct($id, $name = '')
 {
     parent::__construct(Type::INTEGER, $id, ['name' => $name]);
 }
Пример #2
0
 public function __construct($value)
 {
     parent::__construct(Type::BOOLEAN, (bool) $value);
 }
Пример #3
0
 public function __construct($value)
 {
     parent::__construct(Type::INTEGER, $value);
 }
Пример #4
0
 public function __construct($number)
 {
     parent::__construct(Type::STRING, $number);
 }
Пример #5
0
 /**
  * @Alias(name="value", alias="value1")
  */
 public function __construct(\DateTime $value)
 {
     parent::__construct(Type::DATETIME, $value);
 }