public static function filterColumns($data) { $self = static::getInstance(); return array_intersect_key($data, array_flip($self->getColumns())); }