for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Funivan\PhpTokenizer\Strategy;
use Funivan\PhpTokenizer\Token;
/**
*
*/
class StrategyResult {
* @var Token
private $token = null;
* @var int|null
private $nexTokenIndex = null;
* @var bool
private $valid = false;
* @return Token|null
public function getToken() {
return $this->token;
}
* @return boolean
public function isValid() {
return ($this->valid === true);
* @param boolean $valid
* @return $this
public function setValid($valid) {
$this->valid = (boolean) $valid;
return $this;
* @param Token $token
public function setToken(Token $token) {
$this->token = $token;
* @param int $nexTokenIndex
public function setNexTokenIndex($nexTokenIndex) {
$this->nexTokenIndex = $nexTokenIndex;
* @return int|null
public function getNexTokenIndex() {
return $this->nexTokenIndex;