public function setLogger(\Psr\Log\LoggerInterface $logger) { parent::setLogger($logger); if ($this->validator) { $this->validator->setLogger($this->logger); } }
/** * @param string $to */ public function __construct(string $to = '汎用辞書') { parent::__construct(); $this->to = in_array($to, ['キャッチフィーリング', 'きゃっちま', 'Inteligenceω クイズ', 'Inteligenceω しりとり', 'ピクトセンス']) ? $to : '汎用辞書'; }