Skip to content

Commit

Permalink
move operands to abstract class
Browse files Browse the repository at this point in the history
  • Loading branch information
rcerljenko committed Dec 4, 2023
1 parent e3c5be8 commit 4e8157f
Show file tree
Hide file tree
Showing 10 changed files with 7 additions and 48 deletions.
7 changes: 7 additions & 0 deletions src/Dto/Filter/AbstractFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,11 @@

abstract class AbstractFilter implements AbstractDto
{
public const GT = '>';

public const LT = '<';

public const EQ = '=';

public const NEQ = '!=';
}
8 changes: 0 additions & 8 deletions src/Dto/Filter/AppVersionFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,6 @@

final class AppVersionFilter extends AbstractFilter
{
public const GT = '>';

public const LT = '<';

public const EQ = '=';

public const NEQ = '!=';

/**
* @var self::GT|self::LT|self::EQ|self::NEQ
*/
Expand Down
6 changes: 0 additions & 6 deletions src/Dto/Filter/BoughtSkuFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@

final class BoughtSkuFilter extends AbstractFilter
{
public const GT = '>';

public const LT = '<';

public const EQ = '=';

/**
* @var self::GT|self::LT|self::EQ
*/
Expand Down
2 changes: 0 additions & 2 deletions src/Dto/Filter/CountryFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

final class CountryFilter extends AbstractFilter
{
public const EQ = '=';

protected string $value;

public function __construct(string $value)
Expand Down
4 changes: 0 additions & 4 deletions src/Dto/Filter/FirstSessionFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@

final class FirstSessionFilter extends AbstractFilter
{
public const GT = '>';

public const LT = '<';

/**
* @var self::GT|self::LT
*/
Expand Down
4 changes: 0 additions & 4 deletions src/Dto/Filter/LanguageFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@

final class LanguageFilter extends AbstractFilter
{
public const EQ = '=';

public const NEQ = '!=';

/**
* @var self::EQ|self::NEQ
*/
Expand Down
4 changes: 0 additions & 4 deletions src/Dto/Filter/LastSessionFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@

final class LastSessionFilter extends AbstractFilter
{
public const GT = '>';

public const LT = '<';

/**
* @var self::GT|self::LT
*/
Expand Down
8 changes: 0 additions & 8 deletions src/Dto/Filter/SessionCountFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,6 @@

final class SessionCountFilter extends AbstractFilter
{
public const GT = '>';

public const LT = '<';

public const EQ = '=';

public const NEQ = '!=';

/**
* @var self::GT|self::LT|self::EQ|self::NEQ
*/
Expand Down
4 changes: 0 additions & 4 deletions src/Dto/Filter/SessionTimeFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@

final class SessionTimeFilter extends AbstractFilter
{
public const GT = '>';

public const LT = '<';

/**
* @var self::GT|self::LT
*/
Expand Down
8 changes: 0 additions & 8 deletions src/Dto/Filter/TagFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,6 @@

final class TagFilter implements AbstractDto
{
public const GT = '>';

public const LT = '<';

public const EQ = '=';

public const NEQ = '!=';

public const EXISTS = 'exists';

public const NOT_EXISTS = 'not_exists';
Expand Down

0 comments on commit 4e8157f

Please sign in to comment.