public function setColor($color): DeliveryOptions
    {
        if (!in_array($color, static::getOptionsForColor())) {
            throw new InvalidArgumentException(sprintf('Property %s is not supported for %s', $color, __FUNCTION__));
        }

        $this->data['color'] = $color;

        return $this;
    }
public function setColor($color): DeliveryOptions
    {
        if (!in_array($color, static::getOptionsForColor())) {
            throw new InvalidArgumentException(sprintf('Property %s is not supported for %s', $color, __FUNCTION__));
        }

        $this->data['color'] = $color;

        return $this;
    }
public function setColor ( $ color ) : DeliveryOptions { if ( ! in_array ( $ color , static :: getOptionsForColor ( ) ) ) { throw new InvalidArgumentException ( sprintf ( 'Property %s is not supported for %s' , $ color , __FUNCTION__ ) ) ; } $ this -> data [ 'color' ] = $ color ; return $ this ; }
The option specifies whether a color or black-and-white printing is carried out

@param string $color

@return self
@throws InvalidArgumentException
The option specifies whether a color or black - and - white printing is carried out