for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @package WPEmerge
* @author Atanas Angelov <[email protected]>
* @copyright 2018 Atanas Angelov
* @license https://www.gnu.org/licenses/gpl-2.0.html GPL-2.0
* @link https://wpemerge.com/
*/
namespace WPEmerge\Routing;
use WPEmerge\Routing\Conditions\ConditionInterface;
* Represent an object which has a route condition.
trait HasConditionTrait {
* Route condition.
*
* @var ConditionInterface
protected $condition = null;
* Get condition.
* @codeCoverageIgnore
* @return ConditionInterface
public function getCondition() {
return $this->condition;
}
* Set condition.
* @param ConditionInterface $condition
* @return void
public function setCondition( ConditionInterface $condition ) {
$this->condition = $condition;