21 lines
400 B
PHP
21 lines
400 B
PHP
<?php
|
|
|
|
namespace App\Libraries;
|
|
|
|
use App\Libraries\CommonLibrary;
|
|
|
|
abstract class MySocketLibrary extends CommonLibrary
|
|
{
|
|
private $_host = null;
|
|
protected function __construct(string $host)
|
|
{
|
|
parent::__construct();
|
|
$this->_host = $host;
|
|
}
|
|
abstract public function getClient();
|
|
final public function getHost(): string
|
|
{
|
|
return $this->_host;
|
|
}
|
|
}
|