php-linux-gpio/lib/Exception/GpioException.php

21 lines
295 B
PHP

<?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;
}
}