protected function filterData($data): array
    {
        if (empty($this->getFields())) {
            return $data;
        }
        return array_intersect_key($data, array_flip($this->getFields()));
    }
protected function filterData($data): array
    {
        if (empty($this->getFields())) {
            return $data;
        }
        return array_intersect_key($data, array_flip($this->getFields()));
    }
protected function filterData ( $ data ) : array { if ( empty ( $ this -> getFields ( ) ) ) { return $ data ; } return array_intersect_key ( $ data , array_flip ( $ this -> getFields ( ) ) ) ; }
Filter input Fields

@param array $data Request

@return array
Filter input Fields