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

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

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

@param Shop|array $shop

@return Shops
Add shop to collection