src/Slack/Payload.php
private function setIcon()
    {
        if (!$this->slackConfig->getCustomUser()->hasIcon()) {
            return;
        }

        $iconType = 'icon_' . $this->slackConfig->getCustomUser()->getIcon()->getType();
        $this->payload[$iconType] = $this->slackConfig->getCustomUser()->getIcon();
    }
private function setIcon()
    {
        if (!$this->slackConfig->getCustomUser()->hasIcon()) {
            return;
        }

        $iconType = 'icon_' . $this->slackConfig->getCustomUser()->getIcon()->getType();
        $this->payload[$iconType] = $this->slackConfig->getCustomUser()->getIcon();
    }
private function setIcon ( ) { if ( ! $ this -> slackConfig -> getCustomUser ( ) -> hasIcon ( ) ) { return ; } $ iconType = 'icon_' . $ this -> slackConfig -> getCustomUser ( ) -> getIcon ( ) -> getType ( ) ; $ this -> payload [ $ iconType ] = $ this -> slackConfig -> getCustomUser ( ) -> getIcon ( ) ; }
Set a custom icon if available.
Set a custom icon if available .