original_string: public function applyData ( $data = NULL ) {
          if (NULL != $data && is_array( $data )) {
              foreach ($data as $propName => $propValue) {
                  $this->assignValue( $propName, $propValue );
              }
          } else {
              $this->buildVars();
          }
      }
code: public function applyData ( $data = NULL ) {
          if (NULL != $data && is_array( $data )) {
              foreach ($data as $propName => $propValue) {
                  $this->assignValue( $propName, $propValue );
              }
          } else {
              $this->buildVars();
          }
      }
code_tokens: public function applyData ( $ data = NULL ) { if ( NULL != $ data && is_array ( $ data ) ) { foreach ( $ data as $ propName => $ propValue ) { $ this -> assignValue ( $ propName , $ propValue ) ; } } else { $ this -> buildVars ( ) ; } }
docstring: apply given data to properties
  @param array $data
docstring_tokens: apply given data to properties