/** * 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(); }
/** * @return bool */ public function isEmpty() { return $this->labels->isEmpty() && $this->descriptions->isEmpty() && $this->statements->isEmpty(); }
public function testNonEmptyListIsNotEmpty() { $list = new StatementList($this->getStatementWithSnak(1, 'foo')); $this->assertFalse($list->isEmpty()); }