Doctrine\OXM\Mapping\Driver\DriverChain::getAllClassNames PHP Method

getAllClassNames() public method

Gets the names of all mapped classes known to this driver.
public getAllClassNames ( ) : array
return array The names of all mapped classes known to this driver.
    public function getAllClassNames()
    {
        $classNames = array();
        foreach ($this->drivers as $namespace => $driver) {
            $driverClasses = $driver->getAllClassNames();
            foreach ($driverClasses as $className) {
                if (strpos($className, $namespace) === 0) {
                    $classNames[] = $className;
                }
            }
        }
        return array_unique($classNames);
    }