예제 #1
0
파일: Event.php 프로젝트: nimbles/Framework
 /**
  * Class construct
  * @param array|\ArrayObject|null $array
  * @return void
  */
 public function __construct($array = null, array $options = null)
 {
     $options = array_merge(null === $options ? array() : $options, array('type' => 'callable', 'indexType' => static::INDEX_NUMERIC, 'readonly' => false));
     if (array_key_exists('name', $options)) {
         $this->setName($options['name']);
     }
     parent::__construct($array, $options);
 }
예제 #2
0
 /**
  * Class construct
  *
  * @param array|\ArrayObject $array
  * @param array $options
  */
 public function __construct($array = null, array $options = null)
 {
     $options = array_merge(null === $options ? array('readonly' => false) : $options, array('indexType' => static::INDEX_MIXED));
     parent::__construct($array, $options);
     $this->setFlags(static::ARRAY_AS_PROPS);
 }
예제 #3
0
 /**
  * Class construct
  * @param array|\ArrayObject|null $array
  * @return void
  */
 public function __construct($array = null, array $options = null)
 {
     parent::__construct($array, array_merge(is_array($options) ? $options : array(), array('type' => 'Nimbles\\Http\\Header', 'indexType' => static::INDEX_ASSOCIATIVE)));
     $this->setFlags(self::ARRAY_AS_PROPS);
 }
예제 #4
0
 /**
  * Class construct
  * @param array|\ArrayObject|null $array
  * @return void
  */
 public function __construct($array = null, array $options = null)
 {
     $options = array_merge(null === $options ? array() : $options, array('type' => 'Nimbles\\Core\\Event', 'indexType' => static::INDEX_ASSOCIATIVE, 'readonly' => false));
     parent::__construct($array, $options);
     $this->setFlags(self::ARRAY_AS_PROPS);
 }