예제 #1
0
 public function testIsEmpty()
 {
     $list = new TermList();
     $this->assertTrue($list->isEmpty());
     $list = new TermList(array(new Term('en', 'foo')));
     $this->assertFalse($list->isEmpty());
 }
예제 #2
0
 /**
  * @return bool
  */
 public function isEmpty()
 {
     return $this->labels->isEmpty() && $this->descriptions->isEmpty() && $this->statements->isEmpty();
 }
예제 #3
0
 /**
  * @since 0.7.4
  *
  * @return bool
  */
 public function isEmpty()
 {
     return $this->labels->isEmpty() && $this->descriptions->isEmpty() && $this->aliasGroups->isEmpty();
 }