for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace PeacefulBit\Slate\Parser\Tokens;
class Token
{
/**
* @var string
*/
private $type;
* @var mixed
private $value;
* @param string $type
* @param mixed $value
public function __construct(string $type, $value)
$this->type = $type;
$this->value = $value;
}
* @return string
public function getType(): string
return $this->type;
* @return mixed
public function getValue()
return $this->value;
public function __toString()
return $this->getType() . ':' . strval($this->getValue());