Final Class Yiisoft\Hydrator\Exception\NonPublicConstructorException
| Inheritance | Yiisoft\ |
|---|
Thrown when a class is not instantiable because of non-public constructor.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | Yiisoft\ |
Method Details
| public mixed __construct ( ReflectionMethod $constructor ) | ||
| $constructor | ReflectionMethod | |
public function __construct(ReflectionMethod $constructor)
{
parent::__construct(
sprintf(
'%s is not instantiable because of non-public (%s) constructor.',
$constructor->getDeclaringClass()->getName(),
$this->getConstructorType($constructor),
),
);
}
User Contributed Notes
Leave a comment
Join the conversation to share a note.