mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
chore(migration): fixes phpdocs
This commit is contained in:
1 parent
64cae392d1
commit
d4bf4027c1
1 file changed
+22
-3
@@ -6,26 +6,45 @@ use Appwrite\Database\Document;
|
||||
use Appwrite\Database\Database;
|
||||
use Utopia\CLI\Console;
|
||||
use Utopia\Exception;
|
||||
use PDO;
|
||||
|
||||
abstract class Migration
|
||||
{
|
||||
protected \PDO $db;
|
||||
/**
|
||||
* @var PDO
|
||||
*/
|
||||
protected PDO $db;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
protected int $limit = 30;
|
||||
|
||||
/**
|
||||
* @var Document
|
||||
*/
|
||||
protected Document $project;
|
||||
|
||||
/**
|
||||
* @var Database
|
||||
*/
|
||||
protected Database $projectDB;
|
||||
|
||||
/**
|
||||
* Migration constructor.
|
||||
*
|
||||
* @param PDO $pdo
|
||||
*/
|
||||
public function __construct(\PDO $db)
|
||||
public function __construct(PDO $db)
|
||||
{
|
||||
$this->db = $db;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set project for migration.
|
||||
*
|
||||
* @param Document $project
|
||||
* @param Database $projectDB
|
||||
*/
|
||||
public function setProject(Document $project, Database $projectDB): Migration
|
||||
{
|
||||
@@ -38,7 +57,7 @@ abstract class Migration
|
||||
/**
|
||||
* Iterates through every document.
|
||||
*
|
||||
* @param callable(Document):Document $callback
|
||||
* @param callable $callback
|
||||
*/
|
||||
public function forEachDocument(callable $callback)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user