-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(documentator)!: `\LastDragon_ru\LaraASP\Documentator\Processor\P…
…rocessor` events (#209)
- Loading branch information
Showing
26 changed files
with
831 additions
and
202 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
21 changes: 21 additions & 0 deletions
21
packages/documentator/src/Processor/Events/DependencyResolved.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,21 @@ | ||
<?php declare(strict_types = 1); | ||
|
||
namespace LastDragon_ru\LaraASP\Documentator\Processor\Events; | ||
|
||
use LastDragon_ru\LaraASP\Documentator\Processor\Contracts\Dependency; | ||
|
||
readonly class DependencyResolved implements Event { | ||
public function __construct( | ||
/** | ||
* @var class-string<Dependency<*>> | ||
*/ | ||
public string $dependency, | ||
/** | ||
* @var non-empty-string | ||
*/ | ||
public string $path, | ||
public DependencyResolvedResult $result, | ||
) { | ||
// empty | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
packages/documentator/src/Processor/Events/DependencyResolvedResult.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 LastDragon_ru\LaraASP\Documentator\Processor\Events; | ||
|
||
enum DependencyResolvedResult { | ||
case Success; | ||
case Missed; | ||
case Failed; | ||
case Null; | ||
} |
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,7 @@ | ||
<?php declare(strict_types = 1); | ||
|
||
namespace LastDragon_ru\LaraASP\Documentator\Processor\Events; | ||
|
||
interface Event { | ||
// empty | ||
} |
11 changes: 11 additions & 0 deletions
11
packages/documentator/src/Processor/Events/FileFinished.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,11 @@ | ||
<?php declare(strict_types = 1); | ||
|
||
namespace LastDragon_ru\LaraASP\Documentator\Processor\Events; | ||
|
||
readonly class FileFinished implements Event { | ||
public function __construct( | ||
public FileFinishedResult $result, | ||
) { | ||
// empty | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
packages/documentator/src/Processor/Events/FileFinishedResult.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,9 @@ | ||
<?php declare(strict_types = 1); | ||
|
||
namespace LastDragon_ru\LaraASP\Documentator\Processor\Events; | ||
|
||
enum FileFinishedResult { | ||
case Success; | ||
case Skipped; | ||
case Failed; | ||
} |
14 changes: 14 additions & 0 deletions
14
packages/documentator/src/Processor/Events/FileStarted.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 LastDragon_ru\LaraASP\Documentator\Processor\Events; | ||
|
||
readonly class FileStarted implements Event { | ||
public function __construct( | ||
/** | ||
* @var non-empty-string | ||
*/ | ||
public string $path, | ||
) { | ||
// empty | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
packages/documentator/src/Processor/Events/ProcessingFinished.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,11 @@ | ||
<?php declare(strict_types = 1); | ||
|
||
namespace LastDragon_ru\LaraASP\Documentator\Processor\Events; | ||
|
||
readonly class ProcessingFinished implements Event { | ||
public function __construct( | ||
public ProcessingFinishedResult $result, | ||
) { | ||
// empty | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
packages/documentator/src/Processor/Events/ProcessingFinishedResult.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,8 @@ | ||
<?php declare(strict_types = 1); | ||
|
||
namespace LastDragon_ru\LaraASP\Documentator\Processor\Events; | ||
|
||
enum ProcessingFinishedResult { | ||
case Success; | ||
case Failed; | ||
} |
9 changes: 9 additions & 0 deletions
9
packages/documentator/src/Processor/Events/ProcessingStarted.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,9 @@ | ||
<?php declare(strict_types = 1); | ||
|
||
namespace LastDragon_ru\LaraASP\Documentator\Processor\Events; | ||
|
||
readonly class ProcessingStarted implements Event { | ||
public function __construct() { | ||
// empty | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
packages/documentator/src/Processor/Events/TaskFinished.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,11 @@ | ||
<?php declare(strict_types = 1); | ||
|
||
namespace LastDragon_ru\LaraASP\Documentator\Processor\Events; | ||
|
||
readonly class TaskFinished implements Event { | ||
public function __construct( | ||
public TaskFinishedResult $result, | ||
) { | ||
// empty | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
packages/documentator/src/Processor/Events/TaskFinishedResult.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,8 @@ | ||
<?php declare(strict_types = 1); | ||
|
||
namespace LastDragon_ru\LaraASP\Documentator\Processor\Events; | ||
|
||
enum TaskFinishedResult { | ||
case Success; | ||
case Failed; | ||
} |
16 changes: 16 additions & 0 deletions
16
packages/documentator/src/Processor/Events/TaskStarted.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,16 @@ | ||
<?php declare(strict_types = 1); | ||
|
||
namespace LastDragon_ru\LaraASP\Documentator\Processor\Events; | ||
|
||
use LastDragon_ru\LaraASP\Documentator\Processor\Contracts\Task; | ||
|
||
readonly class TaskStarted implements Event { | ||
public function __construct( | ||
/** | ||
* @var class-string<Task> | ||
*/ | ||
public string $task, | ||
) { | ||
// empty | ||
} | ||
} |
Oops, something went wrong.