Class Yiisoft\YiiDevTool\App\Component\Package\PackageErrorList
| Inheritance | Yiisoft\YiiDevTool\App\Component\Package\PackageErrorList |
|---|---|
| Implements | Countable, Iterator |
Public Methods
Method Details
| public current( ): mixed |
#[\ReturnTypeWillChange]
public function current()
{
return current($this->list);
}
| public has( Yiisoft\YiiDevTool\App\Component\Package\Package $package ): boolean | ||
| $package | Yiisoft\YiiDevTool\App\Component\Package\Package | |
public function has(Package $package): bool
{
return isset($this->list[$package->getId()]);
}
| public set( Yiisoft\YiiDevTool\App\Component\Package\Package $package, string $message, string $during ): void | ||
| $package | Yiisoft\YiiDevTool\App\Component\Package\Package | |
| $message | string | |
| $during | string | |
public function set(Package $package, string $message, string $during): void
{
$this->list[$package->getId()] = new PackageError($package, $message, $during);
}
Signup or Login in order to comment.