Ouzo\Utilities\TimeAgo::getParams PHP Méthode

getParams() public méthode

public getParams ( ) : array
Résultat array
    public function getParams()
    {
        return $this->params;
    }

Usage Example

 public function asString()
 {
     $key = $this->timeAgo->getKey();
     $params = $this->timeAgo->getParams();
     if (Strings::equal($key, 'timeAgo.thisYear')) {
         $params['month'] = I18n::t($params['month']);
     }
     return I18n::t($key, $params);
 }