public function isStandardDescriptor($key) { $ref = new ReflectionClass('PHPCR\\RepositoryInterface'); $consts = $ref->getConstants(); return in_array($key, $consts); }