PHP 8.2.31
Preview: ServiceDefinition.php Size: 1.73 KB
//opt/cpanel/ea-wappspector/vendor/rector/rector/vendor/rector/rector-symfony/src/ValueObject/ServiceDefinition.php

<?php

declare (strict_types=1);
namespace Rector\Symfony\ValueObject;

use Rector\Symfony\Contract\Tag\TagInterface;
final class ServiceDefinition
{
    /**
     * @readonly
     * @var string
     */
    private $id;
    /**
     * @readonly
     * @var string|null
     */
    private $class;
    /**
     * @readonly
     * @var bool
     */
    private $isPublic;
    /**
     * @readonly
     * @var bool
     */
    private $isSynthetic;
    /**
     * @readonly
     * @var string|null
     */
    private $alias;
    /**
     * @var TagInterface[]
     * @readonly
     */
    private $tags;
    /**
     * @param TagInterface[] $tags
     */
    public function __construct(string $id, ?string $class, bool $isPublic, bool $isSynthetic, ?string $alias, array $tags)
    {
        $this->id = $id;
        $this->class = $class;
        $this->isPublic = $isPublic;
        $this->isSynthetic = $isSynthetic;
        $this->alias = $alias;
        $this->tags = $tags;
    }
    public function getId() : string
    {
        return $this->id;
    }
    public function getClass() : ?string
    {
        return $this->class;
    }
    public function isPublic() : bool
    {
        return $this->isPublic;
    }
    public function isSynthetic() : bool
    {
        return $this->isSynthetic;
    }
    public function getAlias() : ?string
    {
        return $this->alias;
    }
    /**
     * @return TagInterface[]
     */
    public function getTags() : array
    {
        return $this->tags;
    }
    public function getTag(string $name) : ?TagInterface
    {
        foreach ($this->tags as $tag) {
            if ($tag->getName() !== $name) {
                continue;
            }
            return $tag;
        }
        return null;
    }
}

Directory Contents

Dirs: 4 × Files: 10

Name Size Perms Modified Actions
- drwxr-xr-x 2024-11-08 13:59:10
Edit Download
- drwxr-xr-x 2024-11-08 13:59:10
Edit Download
Tag DIR
- drwxr-xr-x 2024-11-08 13:59:10
Edit Download
- drwxr-xr-x 2024-11-08 13:59:10
Edit Download
593 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download
859 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download
848 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download
1.04 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
600 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download
1.23 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
714 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download
1.73 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
3.31 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
723 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download

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