php / 8.1.5 / reflectionattribute.isrepeated.html /

ReflectionAttribute::isRepeated

(PHP 8)

ReflectionAttribute::isRepeatedReturns whether the attribute of this name could occur repeatedly on a code element

Description

public ReflectionAttribute::isRepeated(): bool

Returns whether the attribute of this name could occur repeatedly on a code element.

Parameters

This function has no parameters.

Return Values

Returns true when attribute is used repeatedly, otherwise false.

© 1997–2021 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/reflectionattribute.isrepeated.php