-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDiscoDevBarData.php
More file actions
48 lines (44 loc) · 2.13 KB
/
DiscoDevBarData.php
File metadata and controls
48 lines (44 loc) · 2.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
declare(strict_types=1);
/* #############################################################################
*
* █▀▀▄ ▀ █▀▀▄ █▀▀▄
* █ █ ▀█ ▄▀▀▄ ▄▀▀▄ ▄▀▀▄ █ █ ▄▀▀▄ █ █ █▀▀▄ ▄▀▀▄ █▄▀
* █ █ █ ▀▄ █ █ █ █ █ █▀▀ █ █ █ █ ▄▄█ █
* █▄▄▀ ▄█▄ ▀▄▄▀ ▀▄▄▀ ▀▄▄▀ █▄▄▀ ▀▄▄▀ ▀▄▀ █▄▄▀ ▀▄▄▀ █
*
* Customizable developer toolbar for Symfony projects
*
* @author Marcin Orlowski <mail (#) marcinOrlowski (.) com>
* @copyright 2025 Marcin Orlowski
* @license https://opensource.org/license/mit MIT
* @link https://github.com/MarcinOrlowski/php-symfony-discodevbar
*
* ########################################################################## */
namespace MarcinOrlowski\DiscoDevBar\Dto;
class DiscoDevBarData
{
/**
* @param array<Widget> $left
* @param array<Widget> $right
* @param bool $leftExpand Whether left container should expand
* @param bool $rightExpand Whether right container should expand
* @param bool $hasError Whether to show error/alternative view
* @param string $errorMessage Error message to display (when hasError is true)
* @param string|null $version Bundle version (null shows as N/A)
* @param bool $fontAwesomeEnabled Whether to auto-include Font Awesome
* @param string $fontAwesomeVersion Font Awesome version to use
*/
public function __construct(
public readonly array $left,
public readonly array $right,
public readonly bool $leftExpand,
public readonly bool $rightExpand,
public readonly bool $hasError = false,
public readonly string $errorMessage = '',
public readonly ?string $version = null,
public readonly bool $fontAwesomeEnabled = false,
public readonly string $fontAwesomeVersion = '6.5.1'
) {
}
}