original_string: private function setPropertyIfExists($property, $value)
      {
          if (property_exists($this, $property)) {
              if ($value == null) {
                  return $this;
              }
  
              $action = new HpsBuilderAction($property, array($this, 'setProperty'));
              $action->arguments = array($property, $value);
              $this->addAction($action);
          } else {
              throw new HpsUnknownPropertyException($this, $property);
          }
          return $this;
      }
code: private function setPropertyIfExists($property, $value)
      {
          if (property_exists($this, $property)) {
              if ($value == null) {
                  return $this;
              }
  
              $action = new HpsBuilderAction($property, array($this, 'setProperty'));
              $action->arguments = array($property, $value);
              $this->addAction($action);
          } else {
              throw new HpsUnknownPropertyException($this, $property);
          }
          return $this;
      }
code_tokens: private function setPropertyIfExists ( $ property , $ value ) { if ( property_exists ( $ this , $ property ) ) { if ( $ value == null ) { return $ this ; } $ action = new HpsBuilderAction ( $ property , array ( $ this , 'setProperty' ) ) ; $ action -> arguments = array ( $ property , $ value ) ; $ this -> addAction ( $ action ) ; } else { throw new HpsUnknownPropertyException ( $ this , $ property ) ; } return $ this ; }
docstring: Sets a property if it exists on the current object.
  
  @param string $property
  @param mixed  $value
  
  @throws HpsUnknownPropertyException
  
  @return null
docstring_tokens: Sets a property if it exists on the current object .