public function getObjectDescriptor($name)
    {

        // query if we've an object descriptor registered
        if ($this->hasObjectDescriptor($name)) {
            // return the object descriptor
            return $this->objectDescriptors->get($name);
        }

        // throw an exception is object descriptor has not been registered
        throw new UnknownObjectDescriptorException(sprintf('Object Descriptor with name "%s" has not been registered', $name));
    }
public function getObjectDescriptor($name)
    {

        // query if we've an object descriptor registered
        if ($this->hasObjectDescriptor($name)) {
            // return the object descriptor
            return $this->objectDescriptors->get($name);
        }

        // throw an exception is object descriptor has not been registered
        throw new UnknownObjectDescriptorException(sprintf('Object Descriptor with name "%s" has not been registered', $name));
    }
public function getObjectDescriptor ( $ name ) { // query if we've an object descriptor registered if ( $ this -> hasObjectDescriptor ( $ name ) ) { // return the object descriptor return $ this -> objectDescriptors -> get ( $ name ) ; } // throw an exception is object descriptor has not been registered throw new UnknownObjectDescriptorException ( sprintf ( 'Object Descriptor with name "%s" has not been registered' , $ name ) ) ; }
Returns the object descriptor if we've registered it.

@param string $name The name we want to return the object descriptor for

@return \AppserverIo\Psr\Deployment\DescriptorInterface|null The requested object descriptor instance
@throws \AppserverIo\Psr\Di\UnknownObjectDescriptorException Is thrown if someone tries to access an unknown object desciptor
Returns the object descriptor if we ve registered it .