X

Create New Item

File Folder

X

Search Results

File "CnbActivation.php"

Full path: /usr/home/FixAGD/domains/dabrowagornicza.org.pl/public_html/wp-content/plugins/call-now-button/src/admin/models/CnbActivation.php
File size: 1.26 KiB (1294 bytes)
MIME-type: text/x-php
Charset: utf-8

Download   Open   Edit   Advanced Edit   Back

<?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;
    }
}