public function getSlot($name)
    {
        if (!isset($this->slots[$name])) {
            throw new ResourceNotFoundException("Slot $name not found");
        }
        return $this->slots[$name];

    }
public function getSlot($name)
    {
        if (!isset($this->slots[$name])) {
            throw new ResourceNotFoundException("Slot $name not found");
        }
        return $this->slots[$name];

    }
public function getSlot ( $ name ) { if ( ! isset ( $ this -> slots [ $ name ] ) ) { throw new ResourceNotFoundException ( "Slot $name not found" ) ; } return $ this -> slots [ $ name ] ; }
Return a known Slot.

@param string $name

@return Slot

@throws ResourceNotFoundException
Return a known Slot .