1<?php 2 3declare(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 18namespace TYPO3\CMS\Workspaces\Event; 19 20use TYPO3\CMS\Workspaces\Service\GridDataService; 21 22/** 23 * Used in the workspaces module to find all chacheable data of versions of a workspace. 24 */ 25final class AfterCompiledCacheableDataForWorkspaceEvent 26{ 27 /** 28 * @var GridDataService 29 */ 30 private $gridService; 31 32 /** 33 * @var array 34 */ 35 private $data; 36 37 /** 38 * @var array 39 */ 40 private $versions; 41 42 public function __construct(GridDataService $gridService, array $data, array $versions) 43 { 44 $this->gridService = $gridService; 45 $this->data = $data; 46 $this->versions = $versions; 47 } 48 49 public function getGridService(): GridDataService 50 { 51 return $this->gridService; 52 } 53 54 public function getData(): array 55 { 56 return $this->data; 57 } 58 59 public function setData(array $data): void 60 { 61 $this->data = $data; 62 } 63 64 public function getVersions(): array 65 { 66 return $this->versions; 67 } 68 69 public function setVersions(array $versions): void 70 { 71 $this->versions = $versions; 72 } 73} 74