/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }