/** * hasNTRelations * * @return boolean */ public function hasNTRelations() { $this->checkRelations(); return count($this->relations->getNTIterator()) > 0; }
/** * getIterator * * @param KVDthes_Relations $relations * @return KVDthes_RelationsIterator */ public function getIterator(KVDthes_Relations $relations) { return $relations->getNTIterator(); }
/** * @todo Implement testGetNTIterator(). */ public function testGetNTIterator() { $this->object->addRelation($this->relation); $this->assertInstanceOf('KVDthes_RelationTypeIterator', $this->object->getNTIterator()); $this->assertEquals(count($this->object->getNTIterator()), 0); }