mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-11 03:01:12 +01:00
cdc3b7adef
f451b0b8e1
[PHP 8.0] Bump to promoted properties (#4)
39 lines
754 B
PHP
39 lines
754 B
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace Rector\Privatization\ValueObject;
|
|
|
|
final class ConstantVisibility
|
|
{
|
|
/**
|
|
* @var bool
|
|
*/
|
|
private $isPublic;
|
|
/**
|
|
* @var bool
|
|
*/
|
|
private $isProtected;
|
|
/**
|
|
* @var bool
|
|
*/
|
|
private $isPrivate;
|
|
public function __construct(bool $isPublic, bool $isProtected, bool $isPrivate)
|
|
{
|
|
$this->isPublic = $isPublic;
|
|
$this->isProtected = $isProtected;
|
|
$this->isPrivate = $isPrivate;
|
|
}
|
|
public function isPublic() : bool
|
|
{
|
|
return $this->isPublic;
|
|
}
|
|
public function isProtected() : bool
|
|
{
|
|
return $this->isProtected;
|
|
}
|
|
public function isPrivate() : bool
|
|
{
|
|
return $this->isPrivate;
|
|
}
|
|
}
|