/** * {@inheritdoc} */ public function __toString() { if ($this->check(false)) { return Arrays::compose($this->data); } else { return parent::__toString(); } }
/** * Added support of array with mapped options names/bits as keys and booleans as values * * {@inheritdoc} */ public function push($value) { if (Arrays::isArray($value)) { if (Arrays::isAssoc($value)) { $this->setAll($value); } else { $this->clear()->apply($value); } } else { parent::push($value); } return $this; }