Bristol SU Support Package
Public Member Functions | List of all members
BristolSU\Support\Logic\Contracts\LogicTester Interface Reference
Inheritance diagram for BristolSU\Support\Logic\Contracts\LogicTester:
Inheritance graph
[legend]

Public Member Functions

 evaluate (Logic $logic, $userModel=null, $groupModel=null, $roleModel=null)
 

Detailed Description

Test a set of resources against a logic group

Definition at line 13 of file LogicTester.php.

Member Function Documentation

◆ evaluate()

BristolSU\Support\Logic\Contracts\LogicTester::evaluate ( Logic  $logic,
  $userModel = null,
  $groupModel = null,
  $roleModel = null 
)

See if the given resources together are in the logic group

Parameters
Logic$logicLogic group to test
null | User$userModelUser to test in the logic group
null | Group$groupModelGroup to test in the logic group
null | Role$roleModelRole to test in the logic group
Returns
bool Are the given resources in the logic group

Implemented in BristolSU\Support\Testing\LogicTester\LogicTesterFake, and BristolSU\Support\Logic\LogicTester.


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