src/Yandex/Market/Content/Models/Children.php
public function add($childModel)
    {
        if (is_array($childModel)) {
            $this->collection[] = new ModelChild($childModel);
        } elseif (is_object($childModel) && $childModel instanceof ModelChild) {
            $this->collection[] = $childModel;
        }

        return $this;
    }
public function add($childModel)
    {
        if (is_array($childModel)) {
            $this->collection[] = new ModelChild($childModel);
        } elseif (is_object($childModel) && $childModel instanceof ModelChild) {
            $this->collection[] = $childModel;
        }

        return $this;
    }
public function add ( $ childModel ) { if ( is_array ( $ childModel ) ) { $ this -> collection [ ] = new ModelChild ( $ childModel ) ; } elseif ( is_object ( $ childModel ) && $ childModel instanceof ModelChild ) { $ this -> collection [ ] = $ childModel ; } return $ this ; }
Add childModel to collection

@param ModelChild|array $childModel

@return Children
Add childModel to collection