public function parseClass($class)
    {
        $reflectionClass = new ReflectionClass($class);

        // check if class is entity
        if ($this->reader->getClassAnnotation($reflectionClass, '\ProAI\Datamapper\Annotations\Entity')) {
            return $this->parseEntity($class);
        } else {
            return null;
        }
    }
public function parseClass($class)
    {
        $reflectionClass = new ReflectionClass($class);

        // check if class is entity
        if ($this->reader->getClassAnnotation($reflectionClass, '\ProAI\Datamapper\Annotations\Entity')) {
            return $this->parseEntity($class);
        } else {
            return null;
        }
    }
public function parseClass ( $ class ) { $ reflectionClass = new ReflectionClass ( $ class ) ; // check if class is entity if ( $ this -> reader -> getClassAnnotation ( $ reflectionClass , '\ProAI\Datamapper\Annotations\Entity' ) ) { return $ this -> parseEntity ( $ class ) ; } else { return null ; } }
Parse a class.

@param string $class
@return array|null
Parse a class .