-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TASK: Load stubs depending on TYPO3 version
- Loading branch information
1 parent
a30c83a
commit aa9a9e4
Showing
10 changed files
with
104 additions
and
62 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
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
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
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,12 +1,15 @@ | ||
<?php | ||
namespace TYPO3\CMS\Extbase\Persistence\Generic; | ||
|
||
use TYPO3\CMS\Extbase\Persistence\QueryInterface; | ||
|
||
class QueryFactory | ||
{ | ||
/** | ||
* @template TEntityClass | ||
* @param class-string<TEntityClass> $className The class name | ||
* @return \TYPO3\CMS\Extbase\Persistence\QueryInterface<TEntityClass> | ||
* @param string $className The class name | ||
* @template T of object | ||
* @phpstan-param class-string<T> $className | ||
* @phpstan-return QueryInterface<T> | ||
*/ | ||
public function create($className): \TYPO3\CMS\Extbase\Persistence\QueryInterface; | ||
public function create($className): QueryInterface; | ||
} |
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
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
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
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
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,50 @@ | ||
<?php | ||
namespace TYPO3\CMS\Extbase\Persistence; | ||
|
||
/** | ||
* Contract for a repository | ||
* @template T of object | ||
*/ | ||
interface RepositoryInterface | ||
{ | ||
/** | ||
* @phpstan-param T $object | ||
* @return void | ||
*/ | ||
public function add($object); | ||
|
||
/** | ||
* @phpstan-param T $object | ||
* @return void | ||
*/ | ||
public function remove($object); | ||
|
||
/** | ||
* @phpstan-param T $modifiedObject | ||
* @return void | ||
*/ | ||
public function update($modifiedObject); | ||
|
||
/** | ||
* @phpstan-return iterable<T> | ||
*/ | ||
public function findAll(); | ||
|
||
/** | ||
* @param int $uid The identifier of the object to find | ||
* @phpstan-return T|null | ||
*/ | ||
public function findByUid($uid); | ||
|
||
/** | ||
* @param mixed $identifier The identifier of the object to find | ||
* @phpstan-return T|null | ||
*/ | ||
public function findByIdentifier($identifier); | ||
|
||
/** | ||
* @return QueryInterface | ||
* @phpstan-return QueryInterface<T> | ||
*/ | ||
public function createQuery(); | ||
} |
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