Esempio n. 1
0
 /**
  * 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;
 }