PHP Class Components_Component_Dependency, horde

Copyright 2010-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
Show file Open project: horde/horde Class Usage Examples

Public Methods

Method Description
__construct ( array $dependency, Components_Component_Factory $factory ) Constructor.
channelOrType ( ) : string Return the package channel or the type description for the dependency.
getChannel ( ) : string Return the package channel for the dependency
getComponent ( array $options = [] ) : Component_Component Return the dependency in its component representation.
getDependencyInformation ( ) : array Return the original dependency information.
getName ( ) : string Return the package name for the dependency
isExtension ( ) : boolen Is this a PHP extension dependency?
isHorde ( ) : boolen Is the dependency a Horde dependency?
isPackage ( ) : boolen Is this a package dependency?
isPearBase ( ) : boolen Is the dependency the PEAR base package?
isPhp ( ) : boolen Is this the PHP dependency?
isRequired ( ) : boolen Is the dependency required?
key ( ) : string Return the key for the dependency

Method Details

__construct() public method

Constructor.
public __construct ( array $dependency, Components_Component_Factory $factory )
$dependency array The dependency information.
$factory Components_Component_Factory Helper factory.

channelOrType() public method

Return the package channel or the type description for the dependency.
public channelOrType ( ) : string
return string The package channel.

getChannel() public method

Return the package channel for the dependency
public getChannel ( ) : string
return string The package channel.

getComponent() public method

Return the dependency in its component representation.
public getComponent ( array $options = [] ) : Component_Component
$options array The options for resolving the component.
return Component_Component The component.

getDependencyInformation() public method

Return the original dependency information.
public getDependencyInformation ( ) : array
return array The original dependency information.

getName() public method

Return the package name for the dependency
public getName ( ) : string
return string The package name.

isExtension() public method

Is this a PHP extension dependency?
public isExtension ( ) : boolen
return boolen True if it is a PHP extension dependency.

isHorde() public method

Is the dependency a Horde dependency?
public isHorde ( ) : boolen
return boolen True if it is a Horde dependency.

isPackage() public method

Is this a package dependency?
public isPackage ( ) : boolen
return boolen True if the dependency is a package.

isPearBase() public method

Is the dependency the PEAR base package?
public isPearBase ( ) : boolen
return boolen True if it is the PEAR base package.

isPhp() public method

Is this the PHP dependency?
public isPhp ( ) : boolen
return boolen True if it is the PHP dependency.

isRequired() public method

Is the dependency required?
public isRequired ( ) : boolen
return boolen True if the dependency is required.

key() public method

Return the key for the dependency
public key ( ) : string
return string The uniqe key for this dependency.