VersionPress\Database\DbSchemaInfo::getAllEntityNames PHP Method

getAllEntityNames() public method

Gets all entities defined by the schema
public getAllEntityNames ( ) : array
return array
    public function getAllEntityNames()
    {
        return array_keys($this->schema);
    }

Usage Example

示例#1
0
 public static function assertFilesEqualDatabase()
 {
     HookMock::setUp(HookMock::TRUE_HOOKS);
     self::staticInitialization();
     $entityNames = self::$schemaInfo->getAllEntityNames();
     foreach ($entityNames as $entityName) {
         self::assertEntitiesEqualDatabase($entityName);
     }
     self::clearGlobalVariables();
     HookMock::tearDown();
 }
All Usage Examples Of VersionPress\Database\DbSchemaInfo::getAllEntityNames