‪TYPO3CMS  10.4
WriterFixture.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of the TYPO3 CMS project.
5  *
6  * It is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU General Public License, either version 2
8  * of the License, or any later version.
9  *
10  * For the full copyright and license information, please read the
11  * LICENSE.txt file that was distributed with this source code.
12  *
13  * The TYPO3 project - inspiring people to share!
14  */
15 
17 
20 
25 {
29  protected ‪$records = [];
30 
31  public function ‪writeLog(‪LogRecord $record)
32  {
33  $this->records[] = $record;
34  }
35 
36  public function ‪getRecords(): array
37  {
38  return ‪$this->records;
39  }
40 }
‪TYPO3\CMS\Core\Tests\Unit\Log\Fixtures\WriterFixture\writeLog
‪writeLog(LogRecord $record)
Definition: WriterFixture.php:30
‪TYPO3\CMS\Core\Tests\Unit\Log\Fixtures\WriterFixture\$records
‪array $records
Definition: WriterFixture.php:28
‪TYPO3\CMS\Core\Tests\Unit\Log\Fixtures\WriterFixture\getRecords
‪getRecords()
Definition: WriterFixture.php:35
‪TYPO3\CMS\Core\Log\LogRecord
Definition: LogRecord.php:22
‪TYPO3\CMS\Core\Tests\Unit\Log\Fixtures\WriterFixture
Definition: WriterFixture.php:25
‪TYPO3\CMS\Core\Tests\Unit\Log\Fixtures
Definition: ProcessorFixture.php:16
‪TYPO3\CMS\Core\Log\Writer\AbstractWriter
Definition: AbstractWriter.php:25