Bristol SU Support Package
Public Member Functions | Private Attributes | List of all members
BristolSU\Support\Action\ActionRepository Class Reference
Inheritance diagram for BristolSU\Support\Action\ActionRepository:
Inheritance graph
[legend]
Collaboration diagram for BristolSU\Support\Action\ActionRepository:
Collaboration graph
[legend]

Public Member Functions

 __construct (ActionManagerContract $manager)
 
 all ()
 
 fromClass ($class)
 

Private Attributes

 $manager
 

Detailed Description

Retrieves actions from the action manager

Definition at line 14 of file ActionRepository.php.

Constructor & Destructor Documentation

◆ __construct()

BristolSU\Support\Action\ActionRepository::__construct ( ActionManagerContract  $manager)

Initialises the action repository

Parameters
ActionManagerContract$managerAction Manager instance, holding all registered actions.

Definition at line 28 of file ActionRepository.php.

References BristolSU\Support\Action\ActionRepository\$manager.

Member Function Documentation

◆ all()

BristolSU\Support\Action\ActionRepository::all ( )

Retrieve all actions.

Returns
Collection<RegisteredAction>

Implements BristolSU\Support\Action\Contracts\ActionRepository.

Definition at line 38 of file ActionRepository.php.

References BristolSU\Support\Action\RegisteredAction\fromArray().

◆ fromClass()

BristolSU\Support\Action\ActionRepository::fromClass (   $class)

Retrieve a RegisteredAction class by class name

Parameters
string$classClass of the action
Exceptions

Implements BristolSU\Support\Action\Contracts\ActionRepository.

Definition at line 53 of file ActionRepository.php.

References BristolSU\Support\Action\RegisteredAction\fromArray().

Member Data Documentation

◆ $manager

BristolSU\Support\Action\ActionRepository::$manager
private

The documentation for this class was generated from the following file: