ReflectionClass::isInstantiable

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

public function isInstantiable(): bool;

Checks if the class is instantiable.

Returns

  • bool - Returns TRUE on success or FALSE on failure.