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:
Diederik de Groot
2020-03-22 14:06:33 +01:00
parent 5064cb3e36
commit 729dccb7f8
20 changed files with 376 additions and 241 deletions

28
lib/Device/Device.php Normal file
View 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;
}
}
?>