/** * Initializes the {@link $repository} and {@link $code} properties. * * @param Repository $repository * @param string $code The ISO code of the locale. */ public function __construct(Repository $repository, $code) { if (!$code) { throw new \InvalidArgumentException("Locale identifier cannot be empty."); } parent::__construct($repository, "main/{$code}", self::$available_sections); $this->code = $code; }
/** * @param Repository $repository */ public function __construct(Repository $repository) { parent::__construct($repository, 'supplemental', self::$available_sections); }