getProducer() public static method

Get producer by id
public static getProducer ( string $appId = Producer::DEFAULT_APP_ID ) : Producer | null
$appId string
return Producer | null
Beispiel #1
0
 /**
  * @return Producer
  * @throws Exception\FacadeException
  */
 protected function getProducer()
 {
     if (null === static::$producer) {
         static::$producer = Facade::getProducer($this->getAppId());
     }
     return static::$producer;
 }
Beispiel #2
0
 protected function getProducer()
 {
     return Facade::getProducer($this->getAppId());
 }