for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace EngineWorks\ProgressStatus;
use SplObserver;
/**
* NullProgress is a null object implementation of ProgressInterface.
*/
class NullProgress implements ProgressInterface
{
/** @var Status */
private $status;
public function __construct(Status $status = null)
$this->status = $status ? : Status::make();
}
public function getStatus()
return $this->status;
public function increase($message = null, $increase = 1)
* @inheritdoc
* @codeCoverageIgnore null implementation
public function update(
$message = null,
$value = null,
$total = null,
$startTime = null,
$current = null
) {
public function shouldNotifyChange(Status $current, Status $newStatus)
return false;
public function attach(SplObserver $observer)
public function detach(SplObserver $observer)
public function notify()