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

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

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

@param DeliveryMethod|array $method

@return DeliveryMethods
Add method to collection