protected static function createUndefinedMemberException(
        $className,
        $property,
        $value,
        NativeException $cause = null
    ) {
        if ('key' === $property) {
            $property = 'name';
        }

        return new Exception\UndefinedClassConstantException(
            $className,
            $property,
            $value,
            $cause
        );
    }
protected static function createUndefinedMemberException(
        $className,
        $property,
        $value,
        NativeException $cause = null
    ) {
        if ('key' === $property) {
            $property = 'name';
        }

        return new Exception\UndefinedClassConstantException(
            $className,
            $property,
            $value,
            $cause
        );
    }
protected static function createUndefinedMemberException ( $ className , $ property , $ value , NativeException $ cause = null ) { if ( 'key' === $ property ) { $ property = 'name' ; } return new Exception \ UndefinedClassConstantException ( $ className , $ property , $ value , $ cause ) ; }
Creates undefined class constant exceptions.

@param string               $className The class name.
@param string               $property  The property name.
@param mixed                $value     The value searched for.
@param NativeException|null $cause     The cause, if available.

@return Exception\UndefinedClassConstantException The newly created exception.
Creates undefined class constant exceptions .