Api\StructType\ApiOffer::setOffer PHP Method

setOffer() public method

Set offer value This property is removable from request (nillable=true+minOccurs=0), therefore if the value assigned to this property is null, it is removed from this object
public setOffer ( ApiOffer $offer = null ) : ApiOffer
$offer ApiOffer
return ApiOffer
    public function setOffer(\Api\StructType\ApiOffer $offer = null)
    {
        if (is_null($offer) || is_array($offer) && empty($offer)) {
            unset($this->offer);
        } else {
            $this->offer = $offer;
        }
        return $this;
    }