Fix UnitTests
Split ResolveResult from Resolve.php Split up Device.php Signed-off-by: Diederik de Groot <ddegroot@talon.nl>
This commit is contained in:
28
lib/Device/Device.php
Normal file
28
lib/Device/Device.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace PROVISION\Device;
|
||||
|
||||
use PROVISION\Device\Type as Type;
|
||||
use PROVISION\Device\Family as Family;
|
||||
use PROVISION\Device\Protocol as Protocol;
|
||||
use PROVISION\Device\Flags as Flags;
|
||||
|
||||
abstract class Device
|
||||
{
|
||||
private $name;
|
||||
private $family;
|
||||
private $prococol;
|
||||
private $flags;
|
||||
function __construct($name, $family, $protocol, $flags = null) {
|
||||
$this->name = $name;
|
||||
$this->family = $family;
|
||||
$this->protocol = $protocol;
|
||||
$this->flags = $flags;
|
||||
}
|
||||
function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
}
|
||||
?>
|
Reference in New Issue
Block a user