Mercurial > hg > cmmr2012-drupal-site
diff vendor/theseer/tokenizer/src/Token.php @ 2:5311817fb629
Theme updates
author | Chris Cannam |
---|---|
date | Tue, 10 Jul 2018 13:19:18 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vendor/theseer/tokenizer/src/Token.php Tue Jul 10 13:19:18 2018 +0000 @@ -0,0 +1,55 @@ +<?php declare(strict_types = 1); +namespace TheSeer\Tokenizer; + +class Token { + + /** + * @var int + */ + private $line; + + /** + * @var string + */ + private $name; + + /** + * @var string + */ + private $value; + + /** + * Token constructor. + * + * @param int $line + * @param string $name + * @param string $value + */ + public function __construct(int $line, string $name, string $value) { + $this->line = $line; + $this->name = $name; + $this->value = $value; + } + + /** + * @return int + */ + public function getLine(): int { + return $this->line; + } + + /** + * @return string + */ + public function getName(): string { + return $this->name; + } + + /** + * @return string + */ + public function getValue(): string { + return $this->value; + } + +}