Exemplo n.º 1
0
 /**
  * @see http://php.net/manual/fr/class.arrayaccess.php
  */
 public function offsetSet($offset, $value)
 {
     if (!$this->inArray($value)) {
         $this->flip[$this->toString($value)] = true;
         parent::offsetSet($offset, $value);
     }
     //if value already exist we just ignore it
     return $this;
 }