*/ public $threats = array(); /** * List of fixable threat IDs. * * @var string[] */ public $fixable_threat_ids = 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; /** * The number of threats. * * @deprecated 0.4.0 This property is deprecated. Count Status_Model::$threats instead. * * @var int */ public $num_threats; /** * The number of plugin threats. * * @deprecated 0.4.0 This property is deprecated. Filter and count Status_Model::$threats instead. * * @var int */ public $num_plugins_threats; /** * The number of theme threats. * * @deprecated 0.4.0 This property is deprecated. Filter and count Status_Model::$threats instead. * * @var int */ public $num_themes_threats; /** * WordPress core status. * * @deprecated 0.4.0 This property is deprecated. Filter and use Status_Model::$threats instead. * * @var object */ public $core; /** * Status themes. * * @deprecated 0.4.0 This property is deprecated. Filter and use Status_Model::$threats instead. * * @var array */ public $themes = array(); /** * Status plugins. * * @deprecated 0.4.0 This property is deprecated. Filter and use Status_Model::$threats instead. * * @var array */ public $plugins = array(); /** * File threats. * * @deprecated 0.4.0 This property is deprecated. Filter and use Status_Model::$threats instead. * * @var array */ public $files = array(); /** * Database threats. * * @deprecated 0.4.0 This property is deprecated. Filter and use Status_Model::$threats instead. * * @var array */ public $database = array(); /** * Status constructor. * * @param array $status The status data to load into the class instance. */ public function __construct( $status = array() ) { // set status defaults // @phan-suppress-next-line PhanDeprecatedProperty -- Maintaining backwards compatibility. $this->core = new \stdClass(); foreach ( $status as $property => $value ) { if ( property_exists( $this, $property ) ) { $this->$property = $value; } } } }