Example #1
0
 public function toArray()
 {
     $array = array();
     if ($this->id != null) {
         $array['id'] = $this->getId();
     }
     if ($this->year != null) {
         $array['year'] = $this->getYear();
     }
     if ($this->subgroup != null) {
         $array['subgroup'] = $this->subgroup->toArray();
     }
     if ($this->font != null) {
         $array['font'] = $this->font->toArray();
     }
     if ($this->type != null) {
         $array['type'] = $this->type->toArray();
     }
     if ($this->variety != null) {
         $array['variety'] = $this->variety->toArray();
     }
     if ($this->origin != null) {
         $array['origin'] = $this->origin->toArray();
     }
     if ($this->destiny != null) {
         $array['destiny'] = $this->destiny->toArray();
     }
     return $array;
 }