Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
100.00% |
1 / 1 |
|
100.00% |
6 / 6 |
CRAP | |
100.00% |
9 / 9 |
AbstractTheme | |
100.00% |
1 / 1 |
|
100.00% |
6 / 6 |
6 | |
100.00% |
9 / 9 |
run | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
runAdmin | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
getContainer | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
setContainer | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
getDir | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
getUrl | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
<?php | |
declare(strict_types=1); | |
namespace Korobochkin\WPKit\Themes; | |
use Symfony\Component\DependencyInjection\ContainerInterface; | |
/** | |
* Class AbstractTheme | |
* @package Korobochkin\WPKit\Themes | |
*/ | |
abstract class AbstractTheme implements ThemeInterface | |
{ | |
/** | |
* @var ContainerInterface | |
*/ | |
protected $container; | |
/** | |
* @inheritdoc | |
*/ | |
public function run() | |
{ | |
return $this; | |
} | |
/** | |
* @inheritdoc | |
*/ | |
public function runAdmin() | |
{ | |
return $this; | |
} | |
/** | |
* @inheritdoc | |
*/ | |
public function getContainer() | |
{ | |
return $this->container; | |
} | |
/** | |
* @inheritdoc | |
*/ | |
public function setContainer(ContainerInterface $container = null) | |
{ | |
$this->container = $container; | |
return $this; | |
} | |
/** | |
* @inheritdoc | |
*/ | |
public function getDir() | |
{ | |
$path = get_stylesheet_directory(); | |
return $path; | |
} | |
/** | |
* @inheritdoc | |
*/ | |
public function getUrl() | |
{ | |
$uri = get_stylesheet_directory_uri(); | |
return $uri; | |
} | |
} |