Пример #1
0
 public function __construct($count, $word)
 {
     parent::__construct();
     if ($count == 1) {
         $this->plural = $word;
     } else {
         $this->plural = $word . 's';
     }
 }
Пример #2
0
 public function __construct($lang, $count, $words)
 {
     parent::__construct();
     $lang = strtolower($lang);
     if ($lang = 'cz') {
         $this->plural = new CzechPlural($count, $words);
     } else {
         $this->plural = new EnglishPlural($count, $words);
     }
 }