1 | <?php |
||
26 | class ICalendarService |
||
27 | { |
||
28 | /** |
||
29 | * The object manager |
||
30 | * |
||
31 | * @var \TYPO3\CMS\Extbase\Object\ObjectManager |
||
32 | */ |
||
33 | protected $objectManager; |
||
34 | |||
35 | /** |
||
36 | * The configuration manager |
||
37 | * |
||
38 | * @var \TYPO3\CMS\Extbase\Configuration\ConfigurationManager |
||
39 | */ |
||
40 | protected $configurationManager; |
||
41 | |||
42 | /** |
||
43 | * ResourceFactory |
||
44 | * |
||
45 | * @var \TYPO3\CMS\Core\Resource\ResourceFactory |
||
46 | */ |
||
47 | protected $resourceFactory = null; |
||
48 | |||
49 | /** |
||
50 | * FluidStandaloneService |
||
51 | * |
||
52 | * @var \DERHANSEN\SfEventMgt\Service\FluidStandaloneService |
||
53 | */ |
||
54 | protected $fluidStandaloneService; |
||
55 | |||
56 | /** |
||
57 | * DI for $configurationManager |
||
58 | * |
||
59 | * @param \TYPO3\CMS\Extbase\Configuration\ConfigurationManager $configurationManager |
||
60 | */ |
||
61 | public function injectConfigurationManager( |
||
66 | |||
67 | /** |
||
68 | 2 | * DI for $fluidStandaloneService |
|
69 | * |
||
70 | 2 | * @param FluidStandaloneService $fluidStandaloneService |
|
71 | 2 | */ |
|
72 | 1 | public function injectFluidStandaloneService( |
|
77 | 1 | ||
78 | 1 | /** |
|
79 | 1 | * DI for $objectManager |
|
80 | * |
||
81 | * @param \TYPO3\CMS\Extbase\Object\ObjectManager $objectManager |
||
82 | */ |
||
83 | public function injectObjectManager(\TYPO3\CMS\Extbase\Object\ObjectManager $objectManager) |
||
87 | |||
88 | /** |
||
89 | 1 | * DI for $resourceFactory |
|
90 | * |
||
91 | * @param \TYPO3\CMS\Core\Resource\ResourceFactory $resourceFactory |
||
92 | 1 | */ |
|
93 | 1 | public function injectResourceFactory(\TYPO3\CMS\Core\Resource\ResourceFactory $resourceFactory) |
|
97 | 1 | ||
98 | 1 | /** |
|
99 | 1 | * Initiates the ICS download for the given event |
|
100 | 1 | * |
|
101 | 1 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Event $event The event |
|
102 | 1 | * @throws Exception Exception |
|
103 | 1 | * @return void |
|
104 | */ |
||
105 | 1 | public function downloadiCalendarFile(\DERHANSEN\SfEventMgt\Domain\Model\Event $event) |
|
117 | |||
118 | /** |
||
119 | * Returns the rendered iCalendar entry for the given event |
||
120 | * according to RFC 2445 |
||
121 | * |
||
122 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Event $event The event |
||
123 | * |
||
124 | * @return string |
||
125 | */ |
||
126 | public function getiCalendarContent(\DERHANSEN\SfEventMgt\Domain\Model\Event $event) |
||
146 | } |
||
147 |
If a method or function can return multiple different values and unless you are sure that you only can receive a single value in this context, we recommend to add an additional type check:
If this a common case that PHP Analyzer should handle natively, please let us know by opening an issue.