public function diff($o1, $o2)
    {
        $diff = array();

        foreach ($this->_props as $key=>$prop) {
            if(!$prop->type->equals($o1->get($key), $o2->get($key)))
                $diff []= $key;
        }

        return $diff;
    }
public function diff($o1, $o2)
    {
        $diff = array();

        foreach ($this->_props as $key=>$prop) {
            if(!$prop->type->equals($o1->get($key), $o2->get($key)))
                $diff []= $key;
        }

        return $diff;
    }
public function diff ( $ o1 , $ o2 ) { $ diff = array ( ) ; foreach ( $ this -> _props as $ key => $ prop ) { if ( ! $ prop -> type -> equals ( $ o1 -> get ( $ key ) , $ o2 -> get ( $ key ) ) ) $ diff [ ] = $ key ; } return $ diff ; }
Returns the keys that differ from the second object to the first by their types
Returns the keys that differ from the second object to the first by their types