public function __construct($count, $word) { parent::__construct(); if ($count == 1) { $this->plural = $word; } else { $this->plural = $word . 's'; } }
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); } }