PHP 8.2.31
Preview: ChangeMethodVisibility.php Size: 859 B
/opt/cpanel/ea-wappspector/vendor/rector/rector/rules/Visibility/ValueObject/ChangeMethodVisibility.php

<?php

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

use Rector\Validation\RectorAssert;
final class ChangeMethodVisibility
{
    /**
     * @readonly
     * @var string
     */
    private $class;
    /**
     * @readonly
     * @var string
     */
    private $method;
    /**
     * @readonly
     * @var int
     */
    private $visibility;
    public function __construct(string $class, string $method, int $visibility)
    {
        $this->class = $class;
        $this->method = $method;
        $this->visibility = $visibility;
        RectorAssert::className($class);
    }
    public function getClass() : string
    {
        return $this->class;
    }
    public function getMethod() : string
    {
        return $this->method;
    }
    public function getVisibility() : int
    {
        return $this->visibility;
    }
}

Directory Contents

Dirs: 0 × Files: 2

Name Size Perms Modified Actions
927 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

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