rector/rules/Privatization/ValueObject/ConstantVisibility.php
Tomas Votruba cdc3b7adef Updated Rector to commit f451b0b8e1e6761ec7f50809745d44d01caba66d
f451b0b8e1 [PHP 8.0] Bump to promoted properties (#4)
2021-05-10 23:39:21 +00:00

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;
}
}