Nextcloud PHP API (stable18)

IEntityCheck

Interface IFileCheck

Tags
since
18.0.0

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
Tags
throws
UnexpectedValueException
since
18.0.0

Search results