public function get($name): PackageContract
    {
        if (array_key_exists($name, $this->items)) {
            return $this->items[$name];
        }
        throw new Exceptions\ModuleNotFoundException("Package '$name' not found.");
    }
public function get($name): PackageContract
    {
        if (array_key_exists($name, $this->items)) {
            return $this->items[$name];
        }
        throw new Exceptions\ModuleNotFoundException("Package '$name' not found.");
    }
public function get ( $ name ) : PackageContract { if ( array_key_exists ( $ name , $ this -> items ) ) { return $ this -> items [ $ name ] ; } throw new Exceptions \ ModuleNotFoundException ( "Package '$name' not found." ) ; }
Get module by name.

@param string $name

@return PackageContract
@throws ModuleNotFoundException
Get module by name .