| 1 | <?php |
||
| 13 | class City { |
||
| 14 | |||
| 15 | public function newFingerprint() { |
||
| 16 | $fingerprint = new Fingerprint(); |
||
| 17 | |||
| 18 | $fingerprint->setLabel( 'en', 'city' ); |
||
| 19 | $fingerprint->setLabel( 'de', 'Stadt' ); |
||
| 20 | |||
| 21 | $fingerprint->setDescription( 'en', 'permanent settlement larger than a town, generally with a population of at least tens of thousands' ); |
||
| 22 | $fingerprint->setDescription( 'de', 'größere, zentralisierte und abgegrenzte Siedlung' ); |
||
| 23 | |||
| 24 | return $fingerprint; |
||
| 25 | } |
||
| 26 | |||
| 27 | public function newItem() { |
||
| 28 | $item = new Item( $this->newItemId() ); |
||
| 29 | |||
| 30 | $item->setFingerprint( $this->newFingerprint() ); |
||
| 31 | |||
| 32 | return $item; |
||
| 33 | } |
||
| 34 | |||
| 35 | 1 | public function newItemId() { |
|
| 38 | |||
| 39 | } |
||
| 40 |