finalize classes
authorMichael Wallner <mike@php.net>
Mon, 16 Jan 2017 08:35:24 +0000 (09:35 +0100)
committerMichael Wallner <mike@php.net>
Mon, 16 Jan 2017 08:35:24 +0000 (09:35 +0100)
lib/API/Call.php
lib/API/Call/Cache.php
lib/API/Call/Deferred.php
lib/API/Consumer.php
lib/API/ContentType.php
lib/API/Iterator.php
lib/API/Links.php

index d84a24c673f71e438d2a5bb60cb14fceb28124aa..f10d6e81328f79373f168fe9e41616129b22d95e 100644 (file)
@@ -7,7 +7,7 @@ use React\Promise\ExtendedPromiseInterface;
 use seekat\API;
 use seekat\Exception;
 
-class Call
+final class Call
 {
        /**
         * @var API
@@ -29,7 +29,7 @@ class Call
 
                /* fetch resource, unless already localized, and try for {$method}_url */
                if (!$this->api->exists($this->call)) {
-                       $promise = $promise->otherwise(function ($error) use($args) {
+                       $promise = $promise->otherwise(function($error) use($args) {
                                if ($this->api->exists($this->call."_url", $url)) {
                                        $url = new Url(uri_template($url, (array)current($args)));
                                        return $this->api->withUrl($url)->get(...$args);
index b80217297e76130eaf176a30efc477c42221fcf3..b6d062c7a69810e0a09cd9229a1155b92add50f5 100644 (file)
@@ -9,7 +9,7 @@ use seekat\API\Call\Cache\Service;
 use seekat\API\Call\Cache\Service\Hollow;
 
 
-class Cache
+final class Cache
 {
        /**
         * @var Service
index a01891f56531f72f90501f85be235b115878845c..7fc44de1ba607c50c36e22c4ee9c39fae130b887 100644 (file)
@@ -6,12 +6,11 @@ use Exception;
 use http\{
        Client, Client\Request, Client\Response
 };
-use React\Promise\ExtendedPromiseInterface;
 use seekat\API;
 use SplObserver;
 use SplSubject;
 
-class Deferred extends \React\Promise\Deferred implements SplObserver
+final class Deferred extends \React\Promise\Deferred implements SplObserver
 {
        /**
         * The response importer
index 5e72ef2a0aa91f9e362e44c0dcf52c9af474dcfe..6e677fe0dde7e3e1dde39f1ac6a80f1aab47b608 100644 (file)
@@ -11,7 +11,7 @@ use React\Promise\{
        function all
 };
 
-class Consumer extends Deferred
+final class Consumer extends Deferred
 {
        /**
         * The HTTP client
index 4fccb9f4367362f3cd625a4942a78cfe5c40c077..3ce123d1024e391dc30eea192c6956e463631eb6 100644 (file)
@@ -9,7 +9,7 @@ use http\{
        Header, Message\Body
 };
 
-class ContentType
+final class ContentType
 {
        /**
         * API version
index b2187478e3e1eb8835d53fea62d58e525ff9d879..33d5132f09b8dacae2610c71951aef6c01dc2f8f 100644 (file)
@@ -6,7 +6,7 @@ use http\Url;
 use Iterator as BaseIterator;
 use seekat\API;
 
-class Iterator implements BaseIterator
+final class Iterator implements BaseIterator
 {
        /**
         * The endpoint
index 7022cda2c9ea8c85d27ad6a58cfd58b99bbea2dc..85d24bd2afe441d5d70ea7071029e0060f170973 100644 (file)
@@ -11,7 +11,7 @@ use http\ {
 };
 use Serializable;
 
-class Links implements Serializable
+final class Links implements Serializable
 {
        /**
         * Parsed "Link" relations