Defaults to New.
public setCondition ( string $condition ) : |
||
$condition | string | |
Résultat |
public function testConditionGetterAndSetter() { $lookup = new Lookup(); $lookup->setCondition('All'); $this->assertEquals('All', $lookup->getCondition()); }
public function testGetCondition() { $lookup = new Lookup(); $this->assertEquals(null, $lookup->getCondition()); $lookup->setCondition('Used'); $this->assertEquals('Used', $lookup->getCondition()); }
/** * @param string $ASIN * * @return \SimpleXMLElement * * @throws \Exception */ public function findAlbumDetail($ASIN) { if (!isset($this->conf) && !isset($this->apaiIO)) { $this->setUp(); } $search = new Lookup(); $search->setCondition('All')->setItemId($ASIN)->setIdType("ASIN")->setRelationshipType('Tracks')->setResponseGroup(array('RelatedItems', 'Small')); $xmlResponse = $this->apaiIO->runOperation($search); $xml = new \SimpleXMLElement($xmlResponse); return $xml; }