Update 2024-09-13 05:08:13

This commit is contained in:
Robot 2024-09-13 05:08:47 +02:00
parent e78ebe5eeb
commit 599c54d774
Signed by untrusted user: Robot
GPG Key ID: 14DECD44E7E1BB95
6 changed files with 31 additions and 29 deletions

View File

@ -107,6 +107,7 @@ class File implements ServiceProviderInterface
public function getDisplay(Container $container): Display public function getDisplay(Container $container): Display
{ {
return new Display( return new Display(
$container->get('Data.Item'),
$container->get('Data.Items') $container->get('Data.Items')
); );
} }

View File

@ -78,6 +78,7 @@
public function getDisplay(Container $container): Display public function getDisplay(Container $container): Display
{ {
return new Display( return new Display(
$container->get('Data.Item'),
$container->get('Data.Items') $container->get('Data.Items')
); );
} }

View File

@ -12,11 +12,11 @@
```uml ```uml
@startuml @startuml
class Display << (F,LightGreen) >> #RoyalBlue { class Display << (F,LightGreen) >> #RoyalBlue {
# Items $items
# Item $item # Item $item
# Items $items
# array $fileTypes # array $fileTypes
# array $fileTypeTasks # array $fileTypeTasks
+ __construct(Items $items, Item $item) + __construct(Item $item, Items $items)
+ get(string $entity, string $target) : ?array + get(string $entity, string $target) : ?array
# setFileTypeTask(object $file) : void # setFileTypeTask(object $file) : void
# setFileDownloadLink(object $file) : void # setFileDownloadLink(object $file) : void

View File

@ -14,8 +14,8 @@ namespace VDM\Joomla\Componentbuilder\File;
use Joomla\CMS\Uri\Uri; use Joomla\CMS\Uri\Uri;
use Joomla\CMS\Router\Route; use Joomla\CMS\Router\Route;
use VDM\Joomla\Interfaces\Data\ItemsInterface as Items;
use VDM\Joomla\Interfaces\Data\ItemInterface as Item; use VDM\Joomla\Interfaces\Data\ItemInterface as Item;
use VDM\Joomla\Interfaces\Data\ItemsInterface as Items;
/** /**
@ -25,14 +25,6 @@ use VDM\Joomla\Interfaces\Data\ItemInterface as Item;
*/ */
final class Display final class Display
{ {
/**
* The Items Class.
*
* @var Items
* @since 5.0.2
*/
protected Items $items;
/** /**
* The Item Class. * The Item Class.
* *
@ -41,6 +33,14 @@ final class Display
*/ */
protected Item $item; protected Item $item;
/**
* The Items Class.
*
* @var Items
* @since 5.0.2
*/
protected Items $items;
/** /**
* The file types * The file types
* *
@ -60,15 +60,15 @@ final class Display
/** /**
* Constructor. * Constructor.
* *
* @param Items $items The Items Class.
* @param Item $item The Item Class. * @param Item $item The Item Class.
* @param Items $items The Items Class.
* *
* @since 5.0.2 * @since 5.0.2
*/ */
public function __construct(Items $items, Item $item) public function __construct(Item $item, Items $items, )
{ {
$this->items = $items;
$this->item = $item; $this->item = $item;
$this->items = $items;
} }
/** /**

View File

@ -1,11 +1,3 @@
/**
* The Items Class.
*
* @var Items
* @since 5.0.2
*/
protected Items $items;
/** /**
* The Item Class. * The Item Class.
* *
@ -14,6 +6,14 @@
*/ */
protected Item $item; protected Item $item;
/**
* The Items Class.
*
* @var Items
* @since 5.0.2
*/
protected Items $items;
/** /**
* The file types * The file types
* *
@ -33,15 +33,15 @@
/** /**
* Constructor. * Constructor.
* *
* @param Items $items The Items Class.
* @param Item $item The Item Class. * @param Item $item The Item Class.
* @param Items $items The Items Class.
* *
* @since 5.0.2 * @since 5.0.2
*/ */
public function __construct(Items $items, Item $item) public function __construct(Item $item, Items $items, )
{ {
$this->items = $items;
$this->item = $item; $this->item = $item;
$this->items = $items;
} }
/** /**

View File

@ -10,13 +10,13 @@
"system_name": "Joomla.File.Display", "system_name": "Joomla.File.Display",
"type": "final class", "type": "final class",
"use_selection": { "use_selection": {
"use_selection0": {
"use": "7212e4db-371f-4cfd-8122-32e9bb100d83",
"as": "Items"
},
"use_selection1": { "use_selection1": {
"use": "05744dd3-4030-4cf8-8dda-a93ab809b473", "use": "05744dd3-4030-4cf8-8dda-a93ab809b473",
"as": "Item" "as": "Item"
},
"use_selection0": {
"use": "7212e4db-371f-4cfd-8122-32e9bb100d83",
"as": "Items"
} }
}, },
"extendsinterfaces": null, "extendsinterfaces": null,