/** * * Returns true if this Item object represents the same actual repository item as the object $item. * @return boolean true if this Item object and $item represent the same actual repository item; false otherwise. * */ public function isSame(Item $item) { if ($this->path == $item->getPath() && $this->name == $item->getName()) { $isSame = true; } else { $isSame = false; } return $isSame; }