Submit
Path:
~
/
/
proc
/
self
/
root
/
opt
/
psa
/
admin
/
plib
/
modules
/
wp-toolkit
/
vendor
/
robmorgan
/
phinx
/
src
/
Phinx
/
Db
/
Plan
/
File Content:
Intent.php
<?php /** * MIT License * For full license information, please view the LICENSE file that was distributed with this source code. */ namespace WPToolkitDependenciesIsolationPrefix\Phinx\Db\Plan; use WPToolkitDependenciesIsolationPrefix\Phinx\Db\Action\Action; /** * An intent is a collection of actions for many tables */ class Intent { /** * List of actions to be executed * * @var \Phinx\Db\Action\Action[] */ protected $actions = []; /** * Adds a new action to the collection * * @param \Phinx\Db\Action\Action $action The action to add * @return void */ public function addAction(Action $action) : void { $this->actions[] = $action; } /** * Returns the full list of actions * * @return \Phinx\Db\Action\Action[] */ public function getActions() : array { return $this->actions; } /** * Merges another Intent object with this one * * @param \Phinx\Db\Plan\Intent $another The other intent to merge in * @return void */ public function merge(Intent $another) : void { $this->actions = \array_merge($this->actions, $another->getActions()); } }
Submit
FILE
FOLDER
INFO
Name
Size
Permission
Action
Solver
---
0755
AlterTable.php
1473 bytes
0644
Intent.php
1220 bytes
0644
NewTable.php
2095 bytes
0644
Plan.php
16642 bytes
0644
N4ST4R_ID | Naxtarrr