original_string: public function getAttributeValue($document, $attribute)
      {
          if ($document instanceof Proxy && !in_array($attribute, $this->getIdentifierAttributeNames()) && !$document->__isInitialized()) {
              $document->__load();
          }
  
          return $this->getPropertyMetadata($attribute)->getValue($document);
      }
code: public function getAttributeValue($document, $attribute)
      {
          if ($document instanceof Proxy && !in_array($attribute, $this->getIdentifierAttributeNames()) && !$document->__isInitialized()) {
              $document->__load();
          }
  
          return $this->getPropertyMetadata($attribute)->getValue($document);
      }
code_tokens: public function getAttributeValue ( $ document , $ attribute ) { if ( $ document instanceof Proxy && ! in_array ( $ attribute , $ this -> getIdentifierAttributeNames ( ) ) && ! $ document -> __isInitialized ( ) ) { $ document -> __load ( ) ; } return $ this -> getPropertyMetadata ( $ attribute ) -> getValue ( $ document ) ; }
docstring: Gets the specified attribute's value off the given document.
  
  @param object $document
  @param string $attribute
  
  @return mixed
docstring_tokens: Gets the specified attribute s value off the given document .