@@ -15,52 +15,38 @@ abstract class Action extends Migration
1515 *
1616 * If true, then it will be executed once.
1717 * If false, then the action will run every time the `actions` command is invoked.
18- *
19- * @var bool
2018 */
2119 protected bool $ once = true ;
2220
2321 /**
2422 * Determines a call to database transactions.
2523 *
2624 * By default, false.
27- *
28- * @var bool
2925 */
3026 protected bool $ transactions = false ;
3127
3228 /**
3329 * The number of attempts to execute a request within a transaction before throwing an error.
34- *
35- * @var int
3630 */
3731 protected int $ transactionAttempts = 1 ;
3832
3933 /**
4034 * Determines which environment to run on.
41- *
42- * @var array|string|null
4335 */
44- protected string | array |null $ environment = null ;
36+ protected array | string |null $ environment = null ;
4537
4638 /**
4739 * Determines in which environment it should not run.
48- *
49- * @var array|string|null
5040 */
51- protected string | array |null $ exceptEnvironment = null ;
41+ protected array | string |null $ exceptEnvironment = null ;
5242
5343 /**
5444 * Defines a possible "pre-launch" of the action.
55- *
56- * @var bool
5745 */
5846 protected bool $ before = true ;
5947
6048 /**
6149 * Defines whether the action will run synchronously or asynchronously.
62- *
63- * @var bool
6450 */
6551 protected bool $ async = false ;
6652
@@ -69,8 +55,6 @@ abstract class Action extends Migration
6955 *
7056 * If true, then it will be executed once.
7157 * If false, then the action will run every time the `actions` command is invoked.
72- *
73- * @return bool
7458 */
7559 public function isOnce (): bool
7660 {
@@ -79,8 +63,6 @@ public function isOnce(): bool
7963
8064 /**
8165 * Determines a call to database transactions.
82- *
83- * @return bool
8466 */
8567 public function enabledTransactions (): bool
8668 {
@@ -89,8 +71,6 @@ public function enabledTransactions(): bool
8971
9072 /**
9173 * The number of attempts to execute a request within a transaction before throwing an error.
92- *
93- * @return int
9474 */
9575 public function transactionAttempts (): int
9676 {
@@ -99,8 +79,6 @@ public function transactionAttempts(): int
9979
10080 /**
10181 * Determines which environment to run on.
102- *
103- * @return array
10482 */
10583 public function onEnvironment (): array
10684 {
@@ -109,8 +87,6 @@ public function onEnvironment(): array
10987
11088 /**
11189 * Determines in which environment it should not run.
112- *
113- * @return array
11490 */
11591 public function exceptEnvironment (): array
11692 {
@@ -119,8 +95,6 @@ public function exceptEnvironment(): array
11995
12096 /**
12197 * Determines whether the given action can be called conditionally.
122- *
123- * @return bool
12498 */
12599 public function allow (): bool
126100 {
@@ -129,8 +103,6 @@ public function allow(): bool
129103
130104 /**
131105 * Defines a possible "pre-launch" of the action.
132- *
133- * @return bool
134106 */
135107 public function hasBefore (): bool
136108 {
@@ -139,8 +111,6 @@ public function hasBefore(): bool
139111
140112 /**
141113 * Defines whether the action will run synchronously or asynchronously.
142- *
143- * @return bool
144114 */
145115 public function isAsync (): bool
146116 {
@@ -149,19 +119,11 @@ public function isAsync(): bool
149119
150120 /**
151121 * Method to be called when the job completes successfully.
152- *
153- * @return void
154122 */
155- public function success (): void
156- {
157- }
123+ public function success (): void {}
158124
159125 /**
160126 * The method will be called if an error occurs.
161- *
162- * @return void
163127 */
164- public function failed (): void
165- {
166- }
128+ public function failed (): void {}
167129}
0 commit comments