matches($tokenText, ['name'])) return UserFilter::ORDER_NAME; if ($this->matches($tokenText, ['registration_time', 'registration_date'])) return UserFilter::ORDER_REGISTRATION_TIME; throw new NotSupportedException(); } }