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