‪TYPO3CMS  ‪main
IdentifierReferenceLine.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
19 
21 
35 {
38 
40  {
41  if (‪$tokenStream->‪isEmpty()) {
42  throw new \LogicException('Identifier token stream must not be empty', 1655825891);
43  }
44  $this->identifierTokenStream = ‪$tokenStream;
45  return $this;
46  }
47 
49  {
51  }
52 
54  {
55  if (‪$tokenStream->‪isEmpty()) {
56  throw new \LogicException('Value token stream must not be empty', 1655825892);
57  }
58  $this->valueTokenStream = ‪$tokenStream;
59  return $this;
60  }
61 
63  {
65  }
66 }
‪TYPO3\CMS\Core\TypoScript\Tokenizer\Line
Definition: AbstractLine.php:18
‪TYPO3\CMS\Core\TypoScript\Tokenizer\Line\IdentifierReferenceLine\setValueTokenStream
‪setValueTokenStream(IdentifierTokenStream $tokenStream)
Definition: IdentifierReferenceLine.php:53
‪TYPO3\CMS\Core\TypoScript\Tokenizer\Line\IdentifierReferenceLine\getIdentifierTokenStream
‪getIdentifierTokenStream()
Definition: IdentifierReferenceLine.php:48
‪TYPO3\CMS\Core\TypoScript\Tokenizer\Token\IdentifierTokenStream
Definition: IdentifierTokenStream.php:44
‪TYPO3\CMS\Core\TypoScript\Tokenizer\Line\AbstractLine
Definition: AbstractLine.php:28
‪TYPO3\CMS\Core\TypoScript\Tokenizer\Line\IdentifierReferenceLine\setIdentifierTokenStream
‪setIdentifierTokenStream(IdentifierTokenStream $tokenStream)
Definition: IdentifierReferenceLine.php:39
‪TYPO3\CMS\Core\TypoScript\Tokenizer\Token\TokenStreamInterface\isEmpty
‪isEmpty()
‪TYPO3\CMS\Core\TypoScript\Tokenizer\Line\IdentifierReferenceLine\getValueTokenStream
‪getValueTokenStream()
Definition: IdentifierReferenceLine.php:62
‪TYPO3\CMS\Core\TypoScript\Tokenizer\Line\IdentifierReferenceLine
Definition: IdentifierReferenceLine.php:35
‪TYPO3\CMS\Core\TypoScript\Tokenizer\Line\AbstractLine\$tokenStream
‪TokenStreamInterface $tokenStream
Definition: AbstractLine.php:29
‪TYPO3\CMS\Core\TypoScript\Tokenizer\Line\IdentifierReferenceLine\$identifierTokenStream
‪IdentifierTokenStream $identifierTokenStream
Definition: IdentifierReferenceLine.php:36
‪TYPO3\CMS\Core\TypoScript\Tokenizer\Line\IdentifierReferenceLine\$valueTokenStream
‪IdentifierTokenStream $valueTokenStream
Definition: IdentifierReferenceLine.php:37