src/Sulu/Component/DocumentManager/Metadata.php
public function getReflectionClass()
    {
        if ($this->reflection) {
            return $this->reflection;
        }

        if (!$this->class) {
            throw new \InvalidArgumentException(
                'Cannot retrieve ReflectionClass on metadata which has no class attribute'
            );
        }

        $this->reflection = new \ReflectionClass($this->class);

        return $this->reflection;
    }
public function getReflectionClass()
    {
        if ($this->reflection) {
            return $this->reflection;
        }

        if (!$this->class) {
            throw new \InvalidArgumentException(
                'Cannot retrieve ReflectionClass on metadata which has no class attribute'
            );
        }

        $this->reflection = new \ReflectionClass($this->class);

        return $this->reflection;
    }
public function getReflectionClass ( ) { if ( $ this -> reflection ) { return $ this -> reflection ; } if ( ! $ this -> class ) { throw new \ InvalidArgumentException ( 'Cannot retrieve ReflectionClass on metadata which has no class attribute' ) ; } $ this -> reflection = new \ ReflectionClass ( $ this -> class ) ; return $ this -> reflection ; }
Returns reflection-class.

@return \ReflectionClass
Returns reflection - class .