示例#1
0
 public static function shortenString($string, $maxLength = 80, $affix = '', $affixPosition = StringShortener::AFFIX_POSITION_MIDDLE)
 {
     return StringShortener::inflect($string, $maxLength, $affix, $affixPosition);
 }
示例#2
0
 /**
  * @see Inflexible\String\Shorten::inflect()
  */
 public function shortenString($string, $maxLength = null, $affix = null, $affixPosition = null)
 {
     return StringShortener::inflect($string, $maxLength, $affix, $affixPosition);
 }