23 $this->list[] = $object;
36 $this->list[$index] = $object;
46 public function search($name)
49 foreach ($this->list as $object)
51 if ($object->compareName($name) == 0)
66 public function searchIndex($name)
69 foreach ($this->list as $i => $object)
71 if ($object->compareName($name) == 0)
102 public function compare(
Collection $targetList, $compareBody =
true)
106 foreach ($this->list as $source)
108 if (!$targetList->search($source->name))
117 foreach ($targetList->list as $target)
119 $source = $this->search($target->name);
129 || $source->body !== $target->body