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

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

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

@param Vendor|array $vendor

@return Vendors
Add vendor to collection