コード例 #1
0
 /**
  * {@inheritDoc}
  */
 public function getCode()
 {
     if ($this->__isInitialized__ === false) {
         return parent::getCode();
     }
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'getCode', array());
     return parent::getCode();
 }
コード例 #2
0
ファイル: CountryAnchor.php プロジェクト: GeeH/bad-puppy
 public function __invoke(Country $country)
 {
     return '<a href="' . $this->getView()->url('country', ['code' => $country->getCode()]) . '">' . $country->getName() . '</a>';
 }