File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11/vendor /
22/nbproject /
3- /.idea /
3+ /.idea /
Original file line number Diff line number Diff line change 22
33namespace Edge \Ares \Decorator ;
44
5+
56/**
67 * Interface CurlDecoratorInterface
78 * @author Marek Makovec <marek.makovec@edgedesign.cz>
@@ -14,4 +15,5 @@ interface CurlDecoratorInterface
1415 * @param resource $resource
1516 */
1617 public function decorate ($ resource );
17- }
18+
19+ }
Original file line number Diff line number Diff line change 22
33namespace Edge \Ares \Decorator ;
44
5+
56/**
67 * Class ProxyCurlDecorator
78 *
89 * @author Marek Makovec <marek.makovec@edgedesign.cz>
910 */
1011class ProxyCurlDecorator implements CurlDecoratorInterface
1112{
12-
1313 private $ proxyHost ;
1414
1515 private $ proxyPort ;
@@ -63,4 +63,5 @@ public function decorate($resource)
6363 );
6464 }
6565 }
66- }
66+
67+ }
Original file line number Diff line number Diff line change 22
33namespace Edge \Ares \Exception ;
44
5+
56/**
6- *
77 * @author Marek Makovec <marek.makovec@edgedesign.cz>
88 */
99class HttpException extends \Exception implements ExceptionInterface
1010{
11-
12- }
11+ }
Original file line number Diff line number Diff line change 22
33namespace Edge \Ares \Exception ;
44
5+
56/**
6- *
77 * @author Marek Makovec <marek.makovec@edgedesign.cz>
88 */
99class InvalidXmlException extends \Exception implements ExceptionInterface
1010{
11-
12- }
11+ }
Original file line number Diff line number Diff line change 11<?php
22
33namespace Edge \Ares \Provider ;
4+
45use Edge \Ares \Decorator \CurlDecoratorInterface ;
56use Edge \Ares \Exception \HttpException ;
67
8+
79/**
810 * @author Marek Makovec <marek.makovec@edgedesign.cz>
911 */
@@ -16,12 +18,12 @@ class HttpProvider implements ProviderInterface
1618 */
1719 private $ decorator ;
1820
21+
1922 public function __construct (CurlDecoratorInterface $ decorator = null )
2023 {
2124 $ this ->decorator = $ decorator ;
2225 }
2326
24-
2527 /**
2628 * Fetch XML describing subject with given ID.
2729 *
@@ -64,4 +66,5 @@ private function generateUrl($ic)
6466 {
6567 return sprintf (self ::ARES_API_URL , $ ic );
6668 }
67- }
69+
70+ }
Original file line number Diff line number Diff line change 3535} catch (\Edge\Ares\Exception\ExceptionInterface $e) {
3636 // Do some error handling here.
3737}
38- ```
38+ ```
You can’t perform that action at this time.
0 commit comments