‪TYPO3CMS  ‪main
ImportLine.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 
32 final class ‪ImportLine extends ‪AbstractLine
33 {
35 
36  public function ‪setValueToken(‪Token $token): static
37  {
38  if ($token->‪getType() !== TokenType::T_VALUE) {
39  throw new \LogicException('Value token must be of type T_VALUE', 1655826193);
40  }
41  $this->valueToken = $token;
42  return $this;
43  }
44 
45  public function ‪getValueToken(): ‪Token
46  {
47  return ‪$this->valueToken;
48  }
49 }
‪TYPO3\CMS\Core\TypoScript\Tokenizer\Line
Definition: AbstractLine.php:18
‪TYPO3\CMS\Core\TypoScript\Tokenizer\Token\Token
Definition: Token.php:29
‪TYPO3\CMS\Core\TypoScript\Tokenizer\Line\ImportLine\$valueToken
‪Token $valueToken
Definition: ImportLine.php:34
‪TYPO3\CMS\Core\TypoScript\Tokenizer\Token\TokenType
‪TokenType
Definition: TokenType.php:26
‪TYPO3\CMS\Core\TypoScript\Tokenizer\Line\AbstractLine
Definition: AbstractLine.php:28
‪TYPO3\CMS\Core\TypoScript\Tokenizer\Line\ImportLine
Definition: ImportLine.php:33
‪TYPO3\CMS\Core\TypoScript\Tokenizer\Line\ImportLine\setValueToken
‪setValueToken(Token $token)
Definition: ImportLine.php:36
‪TYPO3\CMS\Core\TypoScript\Tokenizer\Token\AbstractToken\getType
‪getType()
Definition: AbstractToken.php:60
‪TYPO3\CMS\Core\TypoScript\Tokenizer\Line\ImportLine\getValueToken
‪getValueToken()
Definition: ImportLine.php:45