src/Facade.php
public static function addProducer(Producer $producer)
    {
        $appId = $producer->getAppId();

        if (array_key_exists($appId, static::$producers)) {
            throw new Exception\FacadeException("Producer with {$appId} already exists!");
        }

        static::$producers[$appId] = $producer;

        return true;
    }
public static function addProducer(Producer $producer)
    {
        $appId = $producer->getAppId();

        if (array_key_exists($appId, static::$producers)) {
            throw new Exception\FacadeException("Producer with {$appId} already exists!");
        }

        static::$producers[$appId] = $producer;

        return true;
    }
public static function addProducer ( Producer $ producer ) { $ appId = $ producer -> getAppId ( ) ; if ( array_key_exists ( $ appId , static :: $ producers ) ) { throw new Exception \ FacadeException ( "Producer with {$appId} already exists!" ) ; } static :: $ producers [ $ appId ] = $ producer ; return true ; }
Add producer to facade

@param Producer $producer

@return boolean
@throws Exception\FacadeException
Add producer to facade