Пример #1
0
 function setCategories($categories)
 {
     $this->attributes['categories'] = Categories::create($categories);
     return $this;
 }
Пример #2
0
 /**
  * @param array $categories
  *
  * @return $this
  */
 public function setCategories($categories)
 {
     $this->categories = Categories::create($categories);
     return $this;
 }