IEntityCheck

interface OCP\WorkflowEngine\IEntityCheck
Interface IFileCheck
Source:lib/public/WorkflowEngine/IEntityCheck.php#34

Methods

public OCP\WorkflowEngine\IEntityCheck::setEntitySubject($entity, $subject)
Equips the check with a subject fitting the Entity. For instance, an
entity of File will receive an instance of OCP\Files\Node, or a comment
entity might get an IComment.
The implementing check must be aware of the incoming type.

If an unsupported subject is passed the implementation MAY throw an
\UnexpectedValueException.
Source:

lib/public/WorkflowEngine/IEntityCheck.php#50

Parameters:
Throws:

\UnexpectedValueException

Since:

18.0.0