/** * @param $channel * @param null $channelId */ public function setChannel($channel, $channelId = null) { if (null !== $this->log) { // Set the channel since we have the resource $this->log->setChannel($channel)->setChannelId($channelId); } }