IEntityCheck
Interface IFileCheck
Tags
Table of Contents
- setEntitySubject() : void
- 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.
Methods
setEntitySubject()
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.
public
setEntitySubject(IEntity $entity, mixed $subject) : void
The implementing check must be aware of the incoming type.
If an unsupported subject is passed the implementation MAY throw an \UnexpectedValueException.
Parameters
- $entity : IEntity
- $subject : mixed