# defender-security/6.0.1/lib/packages/DI/Attribute/Injectable.php

Defender Security – Malware Scanner, Login Security &amp; Firewall, version 6.0.1. 35 lines.

- Page: https://pluginprobe.com/plugins/defender-security/6.0.1/code/lib/packages/DI/Attribute/Injectable.php
- Raw: https://pluginprobe.com/plugins/defender-security/6.0.1/raw/lib/packages/DI/Attribute/Injectable.php
- Modified: 2025-11-24T09:27:16+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/defender-security/6.0.1/code/lib/packages/DI/Attribute/Injectable.php#L10-L20`.

```php
<?php

declare(strict_types=1);

namespace WPMU_DEV\Defender\Vendor\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;
    }
}

```
