Skip to content

Commit

Permalink
Make the API final (#78)
Browse files Browse the repository at this point in the history
Closes #66
  • Loading branch information
theofidry committed Oct 15, 2017
1 parent 74453ad commit 5b0de34
Show file tree
Hide file tree
Showing 13 changed files with 30 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/DeepCopy/DeepCopy.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

/**
* DeepCopy
*
* @final
*/
class DeepCopy
{
Expand Down
2 changes: 2 additions & 0 deletions src/DeepCopy/Filter/Doctrine/DoctrineCollectionFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

/**
* Set a null value for a property
*
* @final
*/
class DoctrineCollectionFilter implements Filter
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
use DeepCopy\Reflection\ReflectionHelper;
use Doctrine\Common\Collections\ArrayCollection;

/**
* @final
*/
class DoctrineEmptyCollectionFilter implements Filter
{
/**
Expand Down
2 changes: 2 additions & 0 deletions src/DeepCopy/Filter/Doctrine/DoctrineProxyFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
/**
* Trigger the magic method __load() on a Doctrine Proxy class to load the
* actual entity from the database.
*
* @final
*/
class DoctrineProxyFilter implements Filter
{
Expand Down
2 changes: 2 additions & 0 deletions src/DeepCopy/Filter/ReplaceFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

/**
* Replace the value of a property
*
* @final
*/
class ReplaceFilter implements Filter
{
Expand Down
2 changes: 2 additions & 0 deletions src/DeepCopy/Filter/SetNullFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

/**
* Set a null value for a property
*
* @final
*/
class SetNullFilter implements Filter
{
Expand Down
2 changes: 2 additions & 0 deletions src/DeepCopy/Matcher/Doctrine/DoctrineProxyMatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

/**
* Match a Doctrine Proxy class.
*
* @final
*/
class DoctrineProxyMatcher implements Matcher
{
Expand Down
2 changes: 2 additions & 0 deletions src/DeepCopy/Matcher/PropertyMatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

/**
* Match a specific property of a specific class
*
* @final
*/
class PropertyMatcher implements Matcher
{
Expand Down
2 changes: 2 additions & 0 deletions src/DeepCopy/Matcher/PropertyNameMatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

/**
* Match a property by its name
*
* @final
*/
class PropertyNameMatcher implements Matcher
{
Expand Down
2 changes: 2 additions & 0 deletions src/DeepCopy/Matcher/PropertyTypeMatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
*
* It is recommended to use {@see DeepCopy\TypeFilter\TypeFilter} instead, as it applies on all occurrences
* of given type in copied context (eg. array elements), not just on object properties.
*
* @final
*/
class PropertyTypeMatcher implements Matcher
{
Expand Down
3 changes: 3 additions & 0 deletions src/DeepCopy/TypeFilter/ReplaceFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

namespace DeepCopy\TypeFilter;

/**
* @final
*/
class ReplaceFilter implements TypeFilter
{
/**
Expand Down
3 changes: 3 additions & 0 deletions src/DeepCopy/TypeFilter/ShallowCopyFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

namespace DeepCopy\TypeFilter;

/**
* @final
*/
class ShallowCopyFilter implements TypeFilter
{
/**
Expand Down
3 changes: 3 additions & 0 deletions src/DeepCopy/TypeFilter/Spl/SplDoublyLinkedList.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
use DeepCopy\DeepCopy;
use DeepCopy\TypeFilter\TypeFilter;

/**
* @final
*/
class SplDoublyLinkedList implements TypeFilter
{
/**
Expand Down

0 comments on commit 5b0de34

Please sign in to comment.