ReflectionClass::hasProperty

( excerpt from http://php.net/manual/en/reflectionclass.hasproperty.php )

public function hasProperty(
  string $name,
): bool;

Checks whether the specified property is defined.

Parameters

  • string $name

Returns

  • bool - TRUE if it has the property, otherwise FALSE