Exemple #1
0
 /**
  * Returns a collection of board game names
  *
  * @return NameCollection
  */
 public function getNames()
 {
     if ($this->nameCollection === null) {
         $this->nameCollection = NameCollection::factory(parent::getNames());
     }
     return $this->nameCollection;
 }
Exemple #2
0
 /**
  * @expectedException Shelf\Exception\OutOfBoundsException
  */
 public function testGetPrimaryNameNoPrimary()
 {
     $nameCollectionNoPrimary = NameCollection::factory(array(array('value' => 'Nights of Arabian Tales', 'type' => 'alternate', 'sort_index' => 1), array('value' => 'Tales of Arabian Nights', 'type' => 'alternate', 'sort_index' => 1), array('value' => 'Arabian Nights of Tales', 'type' => 'alternate', 'sort_index' => 1)));
     $nameCollectionNoPrimary->getPrimaryName()->getValue();
 }