interface RefinableDependentAccessInterface implements DependentAccessInterface (View source)

internal  
 

An interface to allow adding an access dependency.

Methods

getAccessDependency()

Gets the access dependency.

$this
setAccessDependency(AccessibleInterface $access_dependency)

Sets the access dependency.

$this
addAccessDependency(AccessibleInterface $access_dependency)

Adds an access dependency into the existing access dependency.

Details

AccessibleInterface|null getAccessDependency()

Gets the access dependency.

Return Value

AccessibleInterface|null

The access dependency or NULL if none has been set.

$this setAccessDependency(AccessibleInterface $access_dependency)

Sets the access dependency.

If an access dependency is already set this will replace the existing dependency.

Parameters

AccessibleInterface $access_dependency

The object upon which access depends.

Return Value

$this

$this addAccessDependency(AccessibleInterface $access_dependency)

Adds an access dependency into the existing access dependency.

If no existing dependency is currently set this will set the dependency will be set to the new value.

If there is an existing dependency and it is not an instance of AccessGroupAnd the dependency will be set as a new AccessGroupAnd instance with the existing and new dependencies as the members of the group.

If there is an existing dependency and it is a instance of AccessGroupAnd the dependency will be added to the existing access group.

Parameters

AccessibleInterface $access_dependency

The access dependency to merge.

Return Value

$this