*/ public $themes = array(); /** * Status plugins. * * @var array */ public $plugins = array(); /** * File threats. * * @var array */ public $files = array(); /** * Database threats. * * @var array */ public $database = array(); /** * Whether the site includes items that have not been checked. * * @var boolean */ public $has_unchecked_items; /** * The estimated percentage of the current scan. * * @var int */ public $current_progress; /** * Whether there was an error loading the status. * * @var bool */ public $error = false; /** * The error code thrown when loading the status. * * @var string */ public $error_code; /** * The error message thrown when loading the status. * * @var string */ public $error_message; /** * Status constructor. * * @param array $status The status data to load into the class instance. */ public function __construct( $status = array() ) { // set status defaults $this->core = new \stdClass(); foreach ( $status as $property => $value ) { if ( property_exists( $this, $property ) ) { $this->$property = $value; } } } }