Command/NotifyCommand.php
protected function getStatsd(InputInterface $input)
    {
        if (null === $this->statsd) {
            $this->statsdConnection = new UdpSocket(
                $input->getOption('statsd-host'),
                $input->getOption('statsd-port')
            );
            $this->statsd = new Client(
                $this->statsdConnection,
                $input->getOption('statsd-namespace')
            );
        }

        return $this->statsd;
    }
protected function getStatsd(InputInterface $input)
    {
        if (null === $this->statsd) {
            $this->statsdConnection = new UdpSocket(
                $input->getOption('statsd-host'),
                $input->getOption('statsd-port')
            );
            $this->statsd = new Client(
                $this->statsdConnection,
                $input->getOption('statsd-namespace')
            );
        }

        return $this->statsd;
    }
protected function getStatsd ( InputInterface $ input ) { if ( null === $ this -> statsd ) { $ this -> statsdConnection = new UdpSocket ( $ input -> getOption ( 'statsd-host' ) , $ input -> getOption ( 'statsd-port' ) ) ; $ this -> statsd = new Client ( $ this -> statsdConnection , $ input -> getOption ( 'statsd-namespace' ) ) ; } return $ this -> statsd ; }
Statically cache statsd client and return a statsd client

@param InputInterface $input
@return Client
Statically cache statsd client and return a statsd client