Ejemplo n.º 1
0
 public function __construct($model)
 {
     // This is to use get/set
     foreach ($this->_getOptionNames() as $name) {
         PropertyMaker::defineProperty($this, $name, $this->_defaults);
     }
     foreach (ManganMeta::create($model)->type()->clientFlags as $name => $value) {
         $this->_values[$name] = $value;
     }
     $this->_mangan = Mangan::fromModel($model);
 }
Ejemplo n.º 2
0
 public function __construct(ReflectionClass $info = null)
 {
     // Client Options must be unset to allow cascading int EntityOptions
     parent::__construct($info);
     foreach ($this->_getOptionNames() as $name) {
         PropertyMaker::defineProperty($this, $name, $this->_values);
         $this->_defaults[$name] = true;
     }
 }