« ReflectionParameter
ReflectionParameter::canBePassedByValue »

ReflectionParameter::allowsNull

(PHP 5, PHP 7, PHP 8)

ReflectionParameter::allowsNull — null を許可するかどうかを調べる

説明

public function ReflectionParameter::allowsNull(): bool

パラメータが null を許可するかどうかを調べます。

パラメータ

この関数にはパラメータはありません。

戻り値

null を許可する場合に true、それ以外の場合に false を返します。

参考

関連キーワード:
ReflectionParameter   許可   allowsNull   canBePassedByValue   参考   isOptional   省略
関連する関数・ページ:
reflectionparameter.canbepassedbyvalue   reflectionparameter.getname   reflectionparameter.isoptional   reflectionparameter.ispassedbyreference   reflectionparameter.getposition   reflectionparameter.tostring