src/Container.php
protected function getReflectionClass($className) {
		if (isset($this->reflectionClasses[$className])) {
			return $this->reflectionClasses[$className];
		}

		try {
			$reflectionClass = new ReflectionClass($className);
		} catch (ReflectionException $e) {
			throw new NotFoundException("Class $className is not found");
		}

		if (!$reflectionClass->isInstantiable()) {
			throw new NotInstantiableException("$className is not an instantiable class");
		}

		$this->reflectionClasses[$className] = $reflectionClass;

		return $reflectionClass;
	}
protected function getReflectionClass($className) {
		if (isset($this->reflectionClasses[$className])) {
			return $this->reflectionClasses[$className];
		}

		try {
			$reflectionClass = new ReflectionClass($className);
		} catch (ReflectionException $e) {
			throw new NotFoundException("Class $className is not found");
		}

		if (!$reflectionClass->isInstantiable()) {
			throw new NotInstantiableException("$className is not an instantiable class");
		}

		$this->reflectionClasses[$className] = $reflectionClass;

		return $reflectionClass;
	}
protected function getReflectionClass ( $ className ) { if ( isset ( $ this -> reflectionClasses [ $ className ] ) ) { return $ this -> reflectionClasses [ $ className ] ; } try { $ reflectionClass = new ReflectionClass ( $ className ) ; } catch ( ReflectionException $ e ) { throw new NotFoundException ( "Class $className is not found" ) ; } if ( ! $ reflectionClass -> isInstantiable ( ) ) { throw new NotInstantiableException ( "$className is not an instantiable class" ) ; } $ this -> reflectionClasses [ $ className ] = $ reflectionClass ; return $ reflectionClass ; }
Create and cache a ReflectionClass.

@param string $className
@return \ReflectionClass
Create and cache a ReflectionClass .