21 lines
295 B
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;
|
|
}
|
|
}
|