PHP Class Nelmio\Alice\Definition\SpecificationBag

Show file Open project: nelmio/alice Class Usage Examples

Public Methods

Method Description
__clone ( )
__construct ( Nelmio\Alice\Definition\MethodCallInterface $constructor = null, PropertyBag $properties, MethodCallBag $calls )
getConstructor ( ) : Nelmio\Alice\Definition\MethodCallInterface | null
getMethodCalls ( ) : MethodCallBag
getProperties ( ) : PropertyBag
mergeWith ( self $specs ) : self Creates a new instance to which the given specs have been merged. In case of conflicts, the existing values are kept.
withConstructor ( Nelmio\Alice\Definition\MethodCallInterface $constructor = null ) : self

Method Details

__clone() public method

public __clone ( )

__construct() public method

public __construct ( Nelmio\Alice\Definition\MethodCallInterface $constructor = null, PropertyBag $properties, MethodCallBag $calls )
$constructor Nelmio\Alice\Definition\MethodCallInterface
$properties PropertyBag
$calls MethodCallBag

getConstructor() public method

public getConstructor ( ) : Nelmio\Alice\Definition\MethodCallInterface | null
return Nelmio\Alice\Definition\MethodCallInterface | null

getMethodCalls() public method

public getMethodCalls ( ) : MethodCallBag
return MethodCallBag

getProperties() public method

public getProperties ( ) : PropertyBag
return PropertyBag

mergeWith() public method

Creates a new instance to which the given specs have been merged. In case of conflicts, the existing values are kept.
public mergeWith ( self $specs ) : self
$specs self
return self

withConstructor() public method

public withConstructor ( Nelmio\Alice\Definition\MethodCallInterface $constructor = null ) : self
$constructor Nelmio\Alice\Definition\MethodCallInterface
return self