PropertyDoesNotExist.php 348 Bytes
Newer Older
冯超鹏's avatar
冯超鹏 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
<?php

declare(strict_types=1);

namespace Roave\BetterReflection\Reflection\Exception;

use RuntimeException;
use function sprintf;

class PropertyDoesNotExist extends RuntimeException
{
    public static function fromName(string $propertyName) : self
    {
        return new self(sprintf('Property "%s" does not exist', $propertyName));
    }
}