Пример #1
0
 /**
  * Checks if the other task has equal scope
  *
  * @param Task $other Other task
  * @return bool
  */
 public function hasEqualScope(self $other)
 {
     return $this->scope->equals($other->scope);
 }
Пример #2
0
 public function testSerialize()
 {
     $s = new Scope(array("foo", "bar", "baz"));
     $t = new Scope($s->toArray());
     $this->assertTrue($t->equals($s));
 }