name: MessageSelector class_comment: null dependencies: [] properties: [] methods: - name: choose visibility: public parameters: - name: line - name: number - name: locale comment: '# * Select a proper translation string based on the given number. # * # * @param string $line # * @param int $number # * @param string $locale # * @return mixed' - name: extract visibility: private parameters: - name: segments - name: number comment: '# * Extract a translation string using inline conditions. # * # * @param array $segments # * @param int $number # * @return mixed' - name: extractFromString visibility: private parameters: - name: part - name: number comment: '# * Get the translation string if the condition matches. # * # * @param string $part # * @param int $number # * @return mixed' - name: stripConditions visibility: private parameters: - name: segments comment: '# * Strip the inline conditions from each segment, just leaving the text. # * # * @param array $segments # * @return array' - name: getPluralIndex visibility: public parameters: - name: locale - name: number comment: '# * Get the index to use for pluralization. # * # * The plural rules are derived from code of the Zend Framework (2010-09-25), which # * is subject to the new BSD license (https://framework.zend.com/license) # * Copyright (c) 2005-2010 - Zend Technologies USA Inc. (http://www.zend.com) # * # * @param string $locale # * @param int $number # * @return int' traits: [] interfaces: []