HEX
Server: Apache
System: Linux vps.teamads.com 4.18.0-553.126.1.el8_10.x86_64 #1 SMP Thu May 28 06:44:09 EDT 2026 x86_64
User: teamadsc (1024)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/teamadsc/public_html/wp-content/plugins/call-now-button/src/admin/models/CnbActivation.php
<?php

namespace cnb\admin\models;

use cnb\admin\button\CnbButton;
use cnb\admin\domain\CnbDomain;
use cnb\notices\CnbNotice;
use WP_Error;

class CnbActivation {


    /**
     * If the API key has been activated in this particular call
     * @var boolean
     */
    public $activation_attempt;
    /**
     * If the activated was actually succesfull
     * @var boolean
     */
    public $success;
    /**
     * @var CnbNotice
     */
    public $notice;
    /**
     * The domain created / used
     * @var CnbDomain|WP_Error
     */
    public $domain;
    /**
     * Indicate if the domain has been created or updated
     * @var string
     */
    public $domain_action;
    /**
     * The migrated button that is created at the API server
     * @var CnbButton|WP_Error
     */
    public $button;

    /**
     * @param bool $activation_attempt
     * @param bool $success
     * @param CnbDomain $domain
     * @param CnbButton $button
     */
    public function __construct( $activation_attempt = false, $success = false, CnbDomain $domain = null, CnbButton $button = null ) {
        $this->activation_attempt = $activation_attempt;
        $this->success            = $success;
        $this->domain             = $domain;
        $this->button             = $button;
    }
}