Slack\Notifier::__construct PHP Method

__construct() public method

__construct
public __construct ( mixed $client, mixed $serializer = null )
$client mixed
$serializer mixed
    public function __construct($client, $serializer = null)
    {
        if (!$serializer) {
            $normalizer = new GetSetMethodNormalizer();
            $normalizer->setCamelizedAttributes(array('icon_emoji', 'icon_url'));
            $serializer = new Serializer(array($normalizer), array(new JsonEncoder()));
        }
        $this->client = $client;
        $this->serializer = $serializer;
    }