‪TYPO3CMS  ‪main
IdentifierAssignmentLine.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 
22 
37 {
40 
42  {
43  if (‪$tokenStream->‪isEmpty()) {
44  throw new \LogicException('Identifier token stream must not be empty', 1655824257);
45  }
46  $this->identifierTokenStream = ‪$tokenStream;
47  return $this;
48  }
49 
51  {
53  }
54 
56  {
57  if (‪$tokenStream->‪isEmpty()) {
58  throw new \LogicException('Value token stream must not be empty', 1655824258);
59  }
60  $this->valueTokenStream = ‪$tokenStream;
61  return $this;
62  }
63 
65  {
67  }
68 }
‪TYPO3\CMS\Core\TypoScript\Tokenizer\Line\IdentifierAssignmentLine\$valueTokenStream
‪TokenStreamInterface $valueTokenStream
Definition: IdentifierAssignmentLine.php:39
‪TYPO3\CMS\Core\TypoScript\Tokenizer\Line
Definition: AbstractLine.php:18
‪TYPO3\CMS\Core\TypoScript\Tokenizer\Line\IdentifierAssignmentLine
Definition: IdentifierAssignmentLine.php:37
‪TYPO3\CMS\Core\TypoScript\Tokenizer\Line\IdentifierAssignmentLine\$identifierTokenStream
‪IdentifierTokenStream $identifierTokenStream
Definition: IdentifierAssignmentLine.php:38
‪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\Token\TokenStreamInterface\isEmpty
‪isEmpty()
‪TYPO3\CMS\Core\TypoScript\Tokenizer\Line\IdentifierAssignmentLine\setIdentifierTokenStream
‪setIdentifierTokenStream(IdentifierTokenStream $tokenStream)
Definition: IdentifierAssignmentLine.php:41
‪TYPO3\CMS\Core\TypoScript\Tokenizer\Token\TokenStreamInterface
Definition: TokenStreamInterface.php:30
‪TYPO3\CMS\Core\TypoScript\Tokenizer\Line\IdentifierAssignmentLine\getValueTokenStream
‪getValueTokenStream()
Definition: IdentifierAssignmentLine.php:64
‪TYPO3\CMS\Core\TypoScript\Tokenizer\Line\AbstractLine\$tokenStream
‪TokenStreamInterface $tokenStream
Definition: AbstractLine.php:29
‪TYPO3\CMS\Core\TypoScript\Tokenizer\Line\IdentifierAssignmentLine\setValueTokenStream
‪setValueTokenStream(TokenStreamInterface $tokenStream)
Definition: IdentifierAssignmentLine.php:55
‪TYPO3\CMS\Core\TypoScript\Tokenizer\Line\IdentifierAssignmentLine\getIdentifierTokenStream
‪getIdentifierTokenStream()
Definition: IdentifierAssignmentLine.php:50