PhpBench\Progress\Logger\PhpBenchLogger::__construct PHP Method

__construct() public method

public __construct ( TimeUnit $timeUnit = null )
$timeUnit PhpBench\Util\TimeUnit
    public function __construct(TimeUnit $timeUnit = null)
    {
        $this->timeUnit = $timeUnit;
    }

Usage Example

示例#1
0
 public function __construct(TimeUnit $timeUnit, $showBench = false)
 {
     parent::__construct($timeUnit);
     $this->showBench = $showBench;
     // if we are in travis, don't do any fancy stuff.
     $this->isCi = getenv('CONTINUOUS_INTEGRATION') ? true : false;
 }