4242class AbsTarget implements TargetInterface
4343{
4444
45- /**
46- * Name which identifies this resource target
47- *
48- * @var string
49- */
50- protected $ name = '' ;
51-
5245 /**
5346 * Name of the Azure Blob Storage container which should be used for publication
5447 *
@@ -171,9 +164,8 @@ class AbsTarget implements TargetInterface
171164 * @param array $options Options for this target
172165 * @throws Exception
173166 */
174- public function __construct (string $ name , array $ options = [])
167+ public function __construct (protected string $ name , array $ options = [])
175168 {
176- $ this ->name = $ name ;
177169 foreach ($ options as $ key => $ value ) {
178170 switch ($ key ) {
179171 case 'container ' :
@@ -246,7 +238,6 @@ public function __construct(string $name, array $options = [])
246238 /**
247239 * Initialize the Azure Blob Storage instance
248240 *
249- * @return void
250241 * @throws BlobStorageException
251242 * @throws Exception
252243 */
@@ -264,7 +255,7 @@ public function initializeObject(): void
264255 }
265256 $ this ->baseUri = $ object ->$ methodName (
266257 [
267- 'targetClass ' => get_class ( $ this ) ,
258+ 'targetClass ' => $ this ::class ,
268259 'containerName ' => $ this ->containerName ,
269260 'keyPrefix ' => $ this ->keyPrefix ,
270261 'baseUri ' => $ this ->baseUri ,
@@ -286,17 +277,12 @@ public function getName(): string
286277
287278 /**
288279 * Returns the object key prefix
289- *
290- * @return string
291280 */
292281 public function getKeyPrefix (): string
293282 {
294283 return $ this ->keyPrefix ;
295284 }
296285
297- /**
298- * @return string
299- */
300286 public function getContainerName (): string
301287 {
302288 return $ this ->containerName ;
@@ -306,7 +292,6 @@ public function getContainerName(): string
306292 * Publishes the whole collection to this target
307293 *
308294 * @param CollectionInterface $collection The collection to publish
309- * @return void
310295 * @throws \Exception
311296 * @throws \Neos\Flow\Exception
312297 */
@@ -358,11 +343,6 @@ public function publishCollection(CollectionInterface $collection): void
358343 }
359344
360345 /**
361- * @param CollectionInterface $collection
362- * @param AbsStorage $storage
363- * @param array $existingObjects
364- * @param array $obsoleteObjects
365- * @return void
366346 * @throws \Neos\Flow\Exception
367347 */
368348 private function publishCollectionFromDifferentAzureBlobStorage (CollectionInterface $ collection , AbsStorage $ storage , array $ existingObjects , array &$ obsoleteObjects ): void
@@ -425,7 +405,6 @@ public function getPublicStaticResourceUri($relativePathAndFilename): string
425405 *
426406 * @param PersistentResource $resource The resource to publish
427407 * @param CollectionInterface $collection The collection the given resource belongs to
428- * @return void
429408 * @throws Exception
430409 * @throws \Exception
431410 */
@@ -524,8 +503,6 @@ public function getPublicPersistentResourceUri(PersistentResource $resource): st
524503 * Publishes the specified source file to this target, with the given relative path.
525504 *
526505 * @param resource $sourceStream
527- * @param string $relativeTargetPathAndFilename
528- * @param ResourceMetaDataInterface $metaData
529506 * @throws \Exception
530507 */
531508 protected function publishFile ($ sourceStream , string $ relativeTargetPathAndFilename , ResourceMetaDataInterface $ metaData ): void
@@ -596,9 +573,6 @@ protected function getRelativePublicationPathAndFilename(ResourceMetaDataInterfa
596573
597574 /**
598575 * Applies rawurlencode() to all path segments of the given $relativePathAndFilename
599- *
600- * @param string $relativePathAndFilename
601- * @return string
602576 */
603577 private function encodeRelativePathAndFilenameForUri (string $ relativePathAndFilename ): string
604578 {
@@ -607,9 +581,6 @@ private function encodeRelativePathAndFilenameForUri(string $relativePathAndFile
607581
608582 /**
609583 * Checks if the containers as storage and target are the same
610- *
611- * @param CollectionInterface $collection
612- * @return bool
613584 */
614585 private function isOneContainerSetup (CollectionInterface $ collection ): bool
615586 {
0 commit comments