public function toArray()
{
return $this->scope;
}
public function equals(Scope $that) { $thisScope = $this->toArray(); $thatScope = $that->toArray(); foreach ($thisScope as $s) { if (!in_array($s, $thatScope)) { return false; } } foreach ($thatScope as $s) { if (!in_array($s, $thisScope)) { return false; } } return true; }