<?php declare(strict_types=1);
namespace Inhere\Console\Component;
use RuntimeException;
class NotifyMessage
{
protected $speed = 2;
public function getSpeed(): int
{
return $this->speed;
}
public function setSpeed($speed): void
{
$this->speed = (int)$speed;
}
public function display(): void
{
throw new RuntimeException('Please implement the method on sub-class');
}
}