Skip to content

Commit

Permalink
refactor: remove types from typed properties and move types to dockblock
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinTheHood committed Nov 26, 2023
1 parent 412f6af commit 4c71ed4
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 11 deletions.
11 changes: 8 additions & 3 deletions src/Classes/Archive/Archive.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,14 @@
*/
class Archive
{
private ArchiveName $archiveName;
private Version $version;
private string $archivesRootPath;
/** @var ArchiveName */
private $archiveName;

/** @var Version */
private $version;

/** @var string */
private $archivesRootPath;

public static function create(string $archiveName, string $version, string $archivesRootPath): Archive
{
Expand Down
5 changes: 3 additions & 2 deletions src/Classes/Archive/ArchiveHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@
*/
class ArchiveHandler
{
private LocalModuleLoader $localModuleLoader;
/** @var LocalModuleLoader */
private $localModuleLoader;

/** @var string /.../ModifiedModuleLoaderClient/Modules */
private string $modulesRootPath;
private $modulesRootPath;

public static function create(int $mode): ArchiveHandler
{
Expand Down
9 changes: 6 additions & 3 deletions src/Classes/Archive/ArchiveName.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,14 @@
*/
class ArchiveName
{
private string $value;
/** @var string */
private $value;

private string $vendorName;
/** @var string */
private $vendorName;

private string $moduleName;
/** @var string */
private $moduleName;

public function __construct(string $value)
{
Expand Down
11 changes: 8 additions & 3 deletions src/Classes/Archive/ArchivePuller.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,14 @@
*/
class ArchivePuller
{
private HttpRequest $httpRequest;
private Parser $parser;
private string $archivesRootPath;
/** @var HttpRequest */
private $httpRequest;

/** @var Parser */
private $parser;

/** @var string */
private $archivesRootPath;

public static function create(): ArchivePuller
{
Expand Down
1 change: 1 addition & 0 deletions src/Classes/Helpers/FileHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class FileHelper
public const FILES_ONLY = 1;
public const DIRS_ONLY = 2;

/** @var String[] */
protected static $ignoreList = [
'.DS_Store', '.git'
];
Expand Down

0 comments on commit 4c71ed4

Please sign in to comment.