Device stubs and exceptions added

This commit is contained in:
2014-06-06 20:32:40 +02:00
parent 633e254958
commit 64d338cf90
5 changed files with 187 additions and 4 deletions

View File

@ -0,0 +1,20 @@
<?php
namespace NoccyLabs\Gpio\Exception;
use NoccyLabs\Gpio\GpioPin;
class GpioException extends \Exception
{
protected $pin;
public function setPin(GpioPin $pin=null)
{
$this->pin = $pin;
}
public function getPin()
{
return $this->pin;
}
}