/** * @param Modyllic_Schema_CodeBody $other * @returns bool True if $other is equivalent to $this */ function equal_to(Modyllic_Schema_CodeBody $other) { if (!parent::equal_to($other)) { return false; } if ($this->deterministic != $other->deterministic) { return false; } if ($this->access != $other->access) { return false; } if ($this->args_type != $other->args_type) { return false; } if ($this->txns != $other->txns) { return false; } $thisargc = count($this->args); $otherargc = count($other->args); if ($thisargc != $otherargc) { return false; } for ($ii = 0; $ii < $thisargc; ++$ii) { if (!$this->args[$ii]->equal_to($other->args[$ii])) { return false; } } return true; }
function equal_to(Modyllic_Schema_CodeBody $other) { if (!parent::equal_to($other)) { return false; } if ($this->time != $other->time) { return false; } if ($this->event != $other->event) { return false; } if ($this->body != $other->body) { return false; } return true; }
function equal_to(Modyllic_Schema_CodeBody $other) { if (!parent::equal_to($other)) { return false; } if ($this->schedule != $other->schedule) { return false; } if ($this->preserve != $other->preserve) { return false; } if ($this->status != $other->status) { return false; } return true; }