forked from sabbelasichon/typo3-rector
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0a32294
commit 4227408
Showing
6 changed files
with
252 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace TYPO3\CMS\Extbase\Domain\Model; | ||
|
||
class Constraint | ||
{ | ||
public function getStartTimestamp(): int | ||
{ | ||
return 1; | ||
} | ||
|
||
public function getEndTimestamp(): int | ||
{ | ||
return 2; | ||
} | ||
|
||
public function getNumber(): int | ||
{ | ||
return 42; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace TYPO3\CMS\Extbase\Domain\Model; | ||
|
||
class Demand | ||
{ | ||
public function getUserName() | ||
{ | ||
} | ||
|
||
public function getBackendUserGroup() | ||
{ | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
stubs/TYPO3/CMS/Extbase/Persistence/Generic/Qom/ConstraintInterface.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace TYPO3\CMS\Extbase\Persistence\Generic\Qom; | ||
|
||
if (interface_exists('TYPO3\CMS\Extbase\Persistence\Generic\Qom\ConstraintInterface')) { | ||
return; | ||
} | ||
|
||
interface ConstraintInterface | ||
{ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
stubs/TYPO3/CMS/Extbase/Persistence/Generic/QuerySettingsInterface.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace TYPO3\CMS\Extbase\Persistence\Generic; | ||
|
||
interface QuerySettingsInterface | ||
{ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,102 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
declare(strict_types=1); | ||
|
||
namespace TYPO3\CMS\Extbase\Persistence; | ||
|
||
use TYPO3\CMS\Extbase\Persistence\Generic\Qom\ConstraintInterface; | ||
use TYPO3\CMS\Extbase\Persistence\Generic\QuerySettingsInterface; | ||
|
||
if (interface_exists('TYPO3\CMS\Extbase\Persistence\QueryInterface')) { | ||
return; | ||
} | ||
|
||
interface QueryInterface | ||
{ | ||
public const OPERATOR_EQUAL_TO = 1; | ||
|
||
public const OPERATOR_EQUAL_TO_NULL = 101; | ||
|
||
public const OPERATOR_NOT_EQUAL_TO = 2; | ||
|
||
public const OPERATOR_NOT_EQUAL_TO_NULL = 202; | ||
|
||
public const OPERATOR_LESS_THAN = 3; | ||
|
||
public const OPERATOR_LESS_THAN_OR_EQUAL_TO = 4; | ||
|
||
public const OPERATOR_GREATER_THAN = 5; | ||
|
||
public const OPERATOR_GREATER_THAN_OR_EQUAL_TO = 6; | ||
|
||
public const OPERATOR_LIKE = 7; | ||
|
||
public const OPERATOR_CONTAINS = 8; | ||
|
||
public const OPERATOR_IN = 9; | ||
|
||
public const OPERATOR_IS_NULL = 10; | ||
|
||
public const OPERATOR_IS_EMPTY = 11; | ||
|
||
public const ORDER_ASCENDING = 'ASC'; | ||
public const ORDER_DESCENDING = 'DESC'; | ||
|
||
/** | ||
* Executes the query and returns the result. | ||
* | ||
* @param bool $returnRawQueryResult | ||
* @return QueryResultInterface|object[] | ||
*/ | ||
public function execute($returnRawQueryResult = false); | ||
|
||
public function setOrderings(array $orderings); | ||
|
||
public function setLimit($limit); | ||
|
||
public function setOffset($offset); | ||
|
||
public function matching($constraint); | ||
|
||
public function logicalAnd($constraint1); | ||
|
||
public function logicalOr($constraint1); | ||
|
||
public function logicalNot(ConstraintInterface $constraint); | ||
|
||
public function equals($propertyName, $operand, $caseSensitive = true); | ||
|
||
public function like($propertyName, $operand); | ||
|
||
public function contains($propertyName, $operand); | ||
|
||
public function in($propertyName, $operand); | ||
|
||
public function lessThan($propertyName, $operand); | ||
|
||
public function lessThanOrEqual($propertyName, $operand); | ||
|
||
public function greaterThan($propertyName, $operand); | ||
|
||
public function greaterThanOrEqual($propertyName, $operand); | ||
|
||
public function setType(string $type): void; | ||
|
||
public function getType(); | ||
|
||
public function setQuerySettings(QuerySettingsInterface $querySettings); | ||
|
||
public function getQuerySettings(); | ||
|
||
public function count(); | ||
|
||
public function getOrderings(); | ||
|
||
public function getLimit(); | ||
|
||
public function getOffset(); | ||
|
||
public function getConstraint(); | ||
|
||
public function getStatement(); | ||
} |