public function getById($id)
    {
        $inputResult = $this->getRequest()->request(
            'GET',
            $this->getRequestUrl(sprintf('inputs/%s', $id))
        );

        if (isset($inputResult['input'])) {
            $input = new Input($inputResult['input']);
        } else {
            throw new \Exception('Input Not Found');
        }

        return $input;
    }
public function getById($id)
    {
        $inputResult = $this->getRequest()->request(
            'GET',
            $this->getRequestUrl(sprintf('inputs/%s', $id))
        );

        if (isset($inputResult['input'])) {
            $input = new Input($inputResult['input']);
        } else {
            throw new \Exception('Input Not Found');
        }

        return $input;
    }
public function getById ( $ id ) { $ inputResult = $ this -> getRequest ( ) -> request ( 'GET' , $ this -> getRequestUrl ( sprintf ( 'inputs/%s' , $ id ) ) ) ; if ( isset ( $ inputResult [ 'input' ] ) ) { $ input = new Input ( $ inputResult [ 'input' ] ) ; } else { throw new \ Exception ( 'Input Not Found' ) ; } return $ input ; }
Gets Input By Id

@param $id

@return Input

@throws \Exception
Gets Input By Id