src/Yandex/Market/Partner/Models/MarketModelOffers.php
public function add($offer)
    {
        if (is_array($offer)) {
            $this->collection[] = new MarketModelOffer($offer);
        } elseif ($offer instanceof MarketModelOffer) {
            $this->collection[] = $offer;
        }

        return $this;
    }
public function add($offer)
    {
        if (is_array($offer)) {
            $this->collection[] = new MarketModelOffer($offer);
        } elseif ($offer instanceof MarketModelOffer) {
            $this->collection[] = $offer;
        }

        return $this;
    }
public function add ( $ offer ) { if ( is_array ( $ offer ) ) { $ this -> collection [ ] = new MarketModelOffer ( $ offer ) ; } elseif ( $ offer instanceof MarketModelOffer ) { $ this -> collection [ ] = $ offer ; } return $ this ; }
Add model offer

@param array|MarketModelOffer $offer
@return MarketModelOffers
Add model offer