for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace MiniGame\Exceptions;
use MiniGame\Move;
class IllegalMoveException extends \Exception
{
/**
* @var Move
*/
private $move;
* Constructor
*
* @param Move $move
* @param string $message
* @param int $code
* @param \Exception $previous
public function __construct(
Move $move = null,
$message = "",
$code = 0,
\Exception $previous = null
) {
$this->move = $move;
parent::__construct($message, $code, $previous);
}
* @return string
public function getMove()
return $this->move;