original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: The option specifies whether a color or black-and-white printing is carried out
  
  @param string $color
  
  @return self
  @throws InvalidArgumentException
docstring_tokens: The option specifies whether a color or black - and - white printing is carried out