for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace hiapi\commands;
class PingCommand extends BaseCommand
{
protected static $handler = PingHandler::class;
protected $answer = 'pong';
public $name;
public $message;
public $no;
public function rules()
return [
['name', 'string', 'min' => 6],
['message', 'string'],
['no', 'number'],
[['name', 'message'], 'required'],
];
}
public function setAnswer($value)
$this->answer = $value;
public function getAnswer()
return $this->answer;