public function diff()
    {
        $result = [];

        foreach ($this->keys() as $key) {
            if ($diff = $this->equal($key)) {
                $result[] = $diff; continue;
            }

            if ($diff = $this->delete($key)) {
                $result[] = $diff;
            }

            if ($diff = $this->insert($key)) {
                $result[] = $diff;
            }
        }

        return $result;
    }
public function diff()
    {
        $result = [];

        foreach ($this->keys() as $key) {
            if ($diff = $this->equal($key)) {
                $result[] = $diff; continue;
            }

            if ($diff = $this->delete($key)) {
                $result[] = $diff;
            }

            if ($diff = $this->insert($key)) {
                $result[] = $diff;
            }
        }

        return $result;
    }
public function diff ( ) { $ result = [ ] ; foreach ( $ this -> keys ( ) as $ key ) { if ( $ diff = $ this -> equal ( $ key ) ) { $ result [ ] = $ diff ; continue ; } if ( $ diff = $ this -> delete ( $ key ) ) { $ result [ ] = $ diff ; } if ( $ diff = $ this -> insert ( $ key ) ) { $ result [ ] = $ diff ; } } return $ result ; }
Get the diff for the model.

@return array
Get the diff for the model .