src/Mutator/Mutator.php
protected function canInstantiate(ReflectionClass $class)
    {
        if (!$class->isInstantiable()) {
            return false;
        }

        $constructor = $class->getConstructor();

        return is_null($constructor) || 0 === $constructor->getNumberOfRequiredParameters();
    }
protected function canInstantiate(ReflectionClass $class)
    {
        if (!$class->isInstantiable()) {
            return false;
        }

        $constructor = $class->getConstructor();

        return is_null($constructor) || 0 === $constructor->getNumberOfRequiredParameters();
    }
protected function canInstantiate ( ReflectionClass $ class ) { if ( ! $ class -> isInstantiable ( ) ) { return false ; } $ constructor = $ class -> getConstructor ( ) ; return is_null ( $ constructor ) || 0 === $ constructor -> getNumberOfRequiredParameters ( ) ; }
Determine whether instance can be instantiated.

@param  \ReflectionClass  $class
@return boolean
Determine whether instance can be instantiated .