/** * Initialize object with Rublon instance. * * A Rublon class instance is required for * the object to work. * * @param RublonConsumer $rublon An instance of the Rublon class * @param string $userId User's ID in the local system. * @param string $userEmail User's email address. * @param boolean $logoutListener Wheter to listen on user's logout. */ public function __construct(RublonConsumer $rublon, $userId = null, $userEmail = null, $logoutListener = false) { $rublon->log(__METHOD__); $this->rublon = $rublon; $this->userId = $userId; $this->userEmail = $userEmail; $this->logoutListener = $logoutListener; }
/** * Initialize object with Rublon instance. * * A Rublon class instance is required for * the object to work. * * @param RublonConsumer $rublon An instance of the Rublon class */ public function __construct(RublonConsumer $rublon) { $rublon->log(__METHOD__); $this->rublon = $rublon; $this->setSize(self::SIZE_MEDIUM); $this->setColor(self::COLOR_DARK); }
/** * Initialize object with Rublon instance. * * A Rublon class instance is required for * the object to work. * * @param RublonConsumer $rublon An instance of the Rublon class */ public function __construct(RublonConsumer $rublon) { $rublon->log(__METHOD__); $this->rublon = $rublon; }