Infrastructure/BaseEntity/DatabaseTable/View/DatabaseTableForm.php
public static function getFieldNames(TableMapper $databaseTableMapper): array 
    {
        if (!isset(self::$tableMapper)) {
            self::$tableMapper = $databaseTableMapper;
        } elseif (self::$tableMapper !== $databaseTableMapper) {
            throw new \InvalidArgumentException("Table mapper mismatch");
        }

        if (!isset(self::$fieldNames)) {
            self::setFieldColumns();
        }

        return self::$fieldNames;
    }
public static function getFieldNames(TableMapper $databaseTableMapper): array 
    {
        if (!isset(self::$tableMapper)) {
            self::$tableMapper = $databaseTableMapper;
        } elseif (self::$tableMapper !== $databaseTableMapper) {
            throw new \InvalidArgumentException("Table mapper mismatch");
        }

        if (!isset(self::$fieldNames)) {
            self::setFieldColumns();
        }

        return self::$fieldNames;
    }
allow access without constructing