/**
  * {@inheritDoc}
  */
 public function getCode()
 {
     if ($this->__isInitialized__ === false) {
         return parent::getCode();
     }
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'getCode', array());
     return parent::getCode();
 }
Beispiel #2
0
 public function __invoke(Country $country)
 {
     return '<a href="' . $this->getView()->url('country', ['code' => $country->getCode()]) . '">' . $country->getName() . '</a>';
 }