lib/Webforge/Types/ObjectType.php
public function getPHPHint($namespaceContext = NULL) {
    if (!isset($this->class)) {
      return '\stdClass';
    }

    if (isset($namespaceContext) && trim($this->class->getNamespace(),'\\') === trim($namespaceContext,'\\')) {
      return $this->class->getName();
    }

    return '\\'.$this->class->getFQN();
  }
public function getPHPHint($namespaceContext = NULL) {
    if (!isset($this->class)) {
      return '\stdClass';
    }

    if (isset($namespaceContext) && trim($this->class->getNamespace(),'\\') === trim($namespaceContext,'\\')) {
      return $this->class->getName();
    }

    return '\\'.$this->class->getFQN();
  }
public function getPHPHint ( $ namespaceContext = NULL ) { if ( ! isset ( $ this -> class ) ) { return '\stdClass' ; } if ( isset ( $ namespaceContext ) && trim ( $ this -> class -> getNamespace ( ) , '\\' ) === trim ( $ namespaceContext , '\\' ) ) { return $ this -> class -> getName ( ) ; } return '\\' . $ this -> class -> getFQN ( ) ; }
Returns the PHPHint as php code for the Object

if class is not known \stdClass is returned

e.g. encodeJSON(\stdClass $object)

if class is known and namespace context is the same as the class only the relative className will be returned

e.g. setPerson(Person $person)

if class is known and namespace context is not set the full qualified name with \ in front will be returned

e.g. setPerson(\ACME\Entities\Person $person)
Returns the PHPHint as php code for the Object