Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
6 / 6
DashboardMetaBox
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
6 / 6
 register
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
6 / 6
<?php
declare(strict_types=1);
namespace Korobochkin\WPKit\MetaBoxes;
/**
 * Class AbstractDashboardMetaBox
 */
class DashboardMetaBox extends MetaBox
{
    /**
     * @inheritdoc
     */
    public function register()
    {
        wp_add_dashboard_widget(
            $this->getId(),
            $this->getTitle(),
            array($this, 'render')
        );
        add_action('load-index.php', array($this, 'lateConstruct'));
        return $this;
    }
}