public function add(DescriptorInterface $descriptor)
    {
        $key = $this->makeKey($descriptor->getName());

        $descriptor->setManager($this);

        $this->descriptors[$key] = $descriptor;
    }
public function add(DescriptorInterface $descriptor)
    {
        $key = $this->makeKey($descriptor->getName());

        $descriptor->setManager($this);

        $this->descriptors[$key] = $descriptor;
    }
public function add ( DescriptorInterface $ descriptor ) { $ key = $ this -> makeKey ( $ descriptor -> getName ( ) ) ; $ descriptor -> setManager ( $ this ) ; $ this -> descriptors [ $ key ] = $ descriptor ; }
Add a class descriptor to the managers collection.

@param Abstraction\DescriptorInterface $descriptor
Add a class descriptor to the managers collection .