for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace PhpGitHooks\Module\Configuration\Contract\Response;
class PrePushResponse
{
/**
* @var PhpUnitResponse
*/
private $phpUnit;
* @var PhpUnitStrictCoverageResponse
private $phpUnitStrictCoverage;
* @var bool
private $prePush;
* @var string
private $rightMessage;
private $errorMessage;
* PrePushResponse constructor.
*
* @param bool $prePush
* @param string $rightMessage
* @param string $errorMessage
* @param PhpUnitResponse $phpUnit
* @param PhpUnitStrictCoverageResponse $phpUnitStrictCoverage
public function __construct(
$prePush,
$rightMessage,
$errorMessage,
PhpUnitResponse $phpUnit,
PhpUnitStrictCoverageResponse $phpUnitStrictCoverage
) {
$this->phpUnit = $phpUnit;
$this->phpUnitStrictCoverage = $phpUnitStrictCoverage;
$this->prePush = $prePush;
$this->rightMessage = $rightMessage;
$this->errorMessage = $errorMessage;
}
* @return PhpUnitResponse
public function getPhpUnit()
return $this->phpUnit;
* @return PhpUnitStrictCoverageResponse
public function getPhpUnitStrictCoverage()
return $this->phpUnitStrictCoverage;
* @return bool
public function isPrePush()
return $this->prePush;
* @return string
public function getRightMessage()
return $this->rightMessage;
public function getErrorMessage()
return $this->errorMessage;