Пример #1
0
 /**
  * Add data to the object.
  *
  * Retains previous data in the object.
  *
  * @param array $data
  * @return $this
  */
 public function addData(array $data)
 {
     if (array_key_exists('number', $data)) {
         $this->setNumber($data['number']);
         unset($data['number']);
     }
     return parent::addData($data);
 }