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