Example #1
0
 /**
  * @return array
  */
 public function toArray()
 {
     $array = parent::toArray();
     $array['properties'] = $this->properties->toArray();
     unset($array['name']);
     if (empty($array['properties'])) {
         $array['properties'] = new \stdClass();
     }
     return $array;
 }
Example #2
0
 /**
  * @return array
  */
 public function toArray()
 {
     $array = parent::toArray();
     unset($array['name']);
     return $array;
 }