final public static function checkUnknownColumn($columns)
    {
        $unknown = array_diff((array) $columns, self::getColumns());
        if (!empty($unknown)) {
            throw new UnknownColumnException(static::class, $unknown);
        }
    }
final public static function checkUnknownColumn($columns)
    {
        $unknown = array_diff((array) $columns, self::getColumns());
        if (!empty($unknown)) {
            throw new UnknownColumnException(static::class, $unknown);
        }
    }
final public static function checkUnknownColumn ( $ columns ) { $ unknown = array_diff ( ( array ) $ columns , self :: getColumns ( ) ) ; if ( ! empty ( $ unknown ) ) { throw new UnknownColumnException ( static :: class , $ unknown ) ; } }
Tests if model has columns

@param string|string[] $columns List of columns to test

@throws UnknownColumnException
Tests if model has columns