PHP 8.2.30
Preview: Reference.php Size: 1.54 KB
//opt/cloudlinux/alt-php53/root/usr/share/pear/Symfony/Component/DependencyInjection/Reference.php

<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\DependencyInjection;

/**
 * Reference represents a service reference.
 *
 * @author Fabien Potencier <fabien@symfony.com>
 *
 * @api
 */
class Reference
{
    private $id;
    private $invalidBehavior;
    private $strict;

    /**
     * Constructor.
     *
     * @param string  $id              The service identifier
     * @param int     $invalidBehavior The behavior when the service does not exist
     * @param Boolean $strict          Sets how this reference is validated
     *
     * @see Container
     */
    public function __construct($id, $invalidBehavior = ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE, $strict = true)
    {
        $this->id = strtolower($id);
        $this->invalidBehavior = $invalidBehavior;
        $this->strict = $strict;
    }

    /**
     * __toString.
     *
     * @return string The service identifier
     */
    public function __toString()
    {
        return $this->id;
    }

    /**
     * Returns the behavior to be used when the service does not exist.
     *
     * @return int
     */
    public function getInvalidBehavior()
    {
        return $this->invalidBehavior;
    }

    /**
     * Returns true when this Reference is strict
     *
     * @return Boolean
     */
    public function isStrict()
    {
        return $this->strict;
    }
}

Directory Contents

Dirs: 7 × Files: 19

Name Size Perms Modified Actions
Compiler DIR
- drwxr-xr-x 2024-03-03 22:55:08
Edit Download
Dumper DIR
- drwxr-xr-x 2024-03-03 22:55:08
Edit Download
Exception DIR
- drwxr-xr-x 2024-03-03 22:55:08
Edit Download
Extension DIR
- drwxr-xr-x 2024-03-03 22:55:08
Edit Download
LazyProxy DIR
- drwxr-xr-x 2024-03-03 22:55:07
Edit Download
Loader DIR
- drwxr-xr-x 2024-03-03 22:55:08
Edit Download
- drwxr-xr-x 2024-03-03 22:55:08
Edit Download
1.25 KB lrw-r--r-- 2019-12-18 11:20:40
Edit Download
349 B lrw-r--r-- 2019-12-18 11:20:40
Edit Download
16.57 KB lrw-r--r-- 2019-12-18 11:20:40
Edit Download
873 B lrw-r--r-- 2019-12-18 11:20:40
Edit Download
714 B lrw-r--r-- 2019-12-18 11:20:40
Edit Download
755 B lrw-r--r-- 2019-12-18 11:20:40
Edit Download
32.63 KB lrw-r--r-- 2019-12-18 11:20:40
Edit Download
3.77 KB lrw-r--r-- 2019-12-18 11:20:40
Edit Download
14.30 KB lrw-r--r-- 2019-12-18 11:20:40
Edit Download
4.58 KB lrw-r--r-- 2019-12-18 11:20:40
Edit Download
1.19 KB lrw-r--r-- 2019-12-18 11:20:40
Edit Download
834 B lrw-r--r-- 2019-12-18 11:20:40
Edit Download
767 B lrw-r--r-- 2019-12-18 11:20:40
Edit Download
1.54 KB lrw-r--r-- 2019-12-18 11:20:40
Edit Download
877 B lrw-r--r-- 2019-12-18 11:20:40
Edit Download
538 B lrw-r--r-- 2019-12-18 11:20:40
Edit Download
3.32 KB lrw-r--r-- 2019-12-18 11:20:40
Edit Download
749 B lrw-r--r-- 2019-12-18 11:20:40
Edit Download
823 B lrw-r--r-- 2019-12-18 11:20:40
Edit Download

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