Ejemplo n.º 1
0
 /**
  * Returns if the Property has no content.
  * Having an id and type set does not count as having content.
  *
  * @since 0.1
  *
  * @return bool
  */
 public function isEmpty()
 {
     return $this->fingerprint->isEmpty() && $this->statements->isEmpty();
 }
Ejemplo n.º 2
0
 /**
  * @return bool
  */
 public function isEmpty()
 {
     return $this->labels->isEmpty() && $this->descriptions->isEmpty() && $this->statements->isEmpty();
 }
Ejemplo n.º 3
0
 public function testNonEmptyListIsNotEmpty()
 {
     $list = new StatementList($this->getStatementWithSnak(1, 'foo'));
     $this->assertFalse($list->isEmpty());
 }