for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types = 1);
namespace Yiisoft\Widget\Tests\Stubs;
use Yiisoft\Widget\Widget;
/**
* TestWidgetA
*/
class TestWidgetA extends Widget
{
* @var string $id;
private $id;
public function init(): void
}
public function run(): string
return '<run-' . $this->id . '>';
public function id(string $value): Widget
$this->id = $value;
return $this;