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, anentity of File will receive an instance of OCP\Files\Node, or a commententity 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: Parameters: - $entity (
OCP\WorkflowEngine\IEntity
) - $subject (mixed)
Throws: \UnexpectedValueException
Since: 18.0.0
- $entity (