protected function getRevisionableItems(array $values)
    {
        if (count($this->getRevisionable()) > 0) {
            return array_intersect_key($values, array_flip($this->getRevisionable()));
        }

        return array_diff_key($values, array_flip($this->getNonRevisionable()));
    }
protected function getRevisionableItems(array $values)
    {
        if (count($this->getRevisionable()) > 0) {
            return array_intersect_key($values, array_flip($this->getRevisionable()));
        }

        return array_diff_key($values, array_flip($this->getNonRevisionable()));
    }
protected function getRevisionableItems ( array $ values ) { if ( count ( $ this -> getRevisionable ( ) ) > 0 ) { return array_intersect_key ( $ values , array_flip ( $ this -> getRevisionable ( ) ) ) ; } return array_diff_key ( $ values , array_flip ( $ this -> getNonRevisionable ( ) ) ) ; }
Get an array of revisionable attributes.

@param array $values

@return array
Get an array of revisionable attributes .