PHP 8.2.31
Preview: Injectable.php Size: 556 B
//opt/cpanel/ea-wappspector/vendor/php-di/php-di/src/Attribute/Injectable.php

<?php

declare(strict_types=1);

namespace DI\Attribute;

use Attribute;

/**
 * "Injectable" attribute.
 *
 * Marks a class as injectable
 *
 * @api
 *
 * @author Domenic Muskulus <domenic@muskulus.eu>
 * @author Matthieu Napoli <matthieu@mnapoli.fr>
 */
#[Attribute(Attribute::TARGET_CLASS)]
class Injectable
{
    /**
     * @param bool|null $lazy Should the object be lazy-loaded.
     */
    public function __construct(
        private ?bool $lazy = null,
    ) {
    }

    public function isLazy() : ?bool
    {
        return $this->lazy;
    }
}

Directory Contents

Dirs: 0 × Files: 2

Name Size Perms Modified Actions
1.69 KB lrw-r--r-- 2025-08-16 11:10:48
Edit Download
556 B lrw-r--r-- 2025-08-16 11:10:48
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).