for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Tleckie\DesignPatterns\State;
/**
* Class SpeedUpState
*
* @package Tleckie\DesignPatterns\State
* @author Teodoro Leckie Westberg <[email protected]>
*/
class SpeedUpState extends State
{
* @return SpeedUpState
public function speedUp(): SpeedUpState
return new self();
}
* @return BrakeState
public function brake(): BrakeState
return new BrakeState();