Skip to content

Commit 9a8dda3

Browse files
committed
make classes final
1 parent 97e31e8 commit 9a8dda3

9 files changed

+19
-7
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
CHANGELOG
22
=========
33

4+
0.3.0
5+
-----
6+
7+
* Made all classes final.
8+
49
0.2.0
510
-----
611

UPGRADE.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
UPGRADE
22
=======
33

4+
Upgrading from 0.2 to 0.3
5+
-------------------------
6+
7+
* All classes are final now which means that you can now longer extend them.
8+
Consider using composition/decoration instead if you need to build functionality
9+
on top of the built-in classes.
10+
411
Upgrading from 0.1 to 0.2
512
-------------------------
613

src/Api/ActivityProfileApiClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*
2121
* @author Christian Flothmann <[email protected]>
2222
*/
23-
class ActivityProfileApiClient extends DocumentApiClient implements ActivityProfileApiClientInterface
23+
final class ActivityProfileApiClient extends DocumentApiClient implements ActivityProfileApiClientInterface
2424
{
2525
/**
2626
* {@inheritDoc}

src/Api/AgentProfileApiClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*
2424
* @author Christian Flothmann <[email protected]>
2525
*/
26-
class AgentProfileApiClient extends DocumentApiClient implements AgentProfileApiClientInterface
26+
final class AgentProfileApiClient extends DocumentApiClient implements AgentProfileApiClientInterface
2727
{
2828
/**
2929
* @var ActorSerializerInterface

src/Api/StateApiClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
*
2323
* @author Christian Flothmann <[email protected]>
2424
*/
25-
class StateApiClient extends DocumentApiClient implements StateApiClientInterface
25+
final class StateApiClient extends DocumentApiClient implements StateApiClientInterface
2626
{
2727
/**
2828
* @var ActorSerializerInterface

src/Api/StatementsApiClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
*
2828
* @author Christian Flothmann <[email protected]>
2929
*/
30-
class StatementsApiClient extends ApiClient implements StatementsApiClientInterface
30+
final class StatementsApiClient extends ApiClient implements StatementsApiClientInterface
3131
{
3232
/**
3333
* @var StatementSerializerInterface

src/Request/Handler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
*
2525
* @author Christian Flothmann <[email protected]>
2626
*/
27-
class Handler implements HandlerInterface
27+
final class Handler implements HandlerInterface
2828
{
2929
private $httpClient;
3030

src/XApiClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
*
2525
* @author Christian Flothmann <[email protected]>
2626
*/
27-
class XApiClient extends ApiClient implements XApiClientInterface
27+
final class XApiClient extends ApiClient implements XApiClientInterface
2828
{
2929
/**
3030
* @var SerializerRegistryInterface

src/XApiClientBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
*
2727
* @author Christian Flothmann <[email protected]>
2828
*/
29-
class XApiClientBuilder implements XApiClientBuilderInterface
29+
final class XApiClientBuilder implements XApiClientBuilderInterface
3030
{
3131
private $baseUrl;
3232

0 commit comments

Comments
 (0)