Skip to content

Commit

Permalink
Docs: add PHPDocs to the ExecutorPoolClass
Browse files Browse the repository at this point in the history
  • Loading branch information
komtcho committed Jul 27, 2024
1 parent 269f6aa commit c9b6b80
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions src/Classes/ExecutorPoolClass.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

class ExecutorPoolClass
{
/**
* These paths for all pools of executors.
*/
private array $paths = [];

public function __construct()
Expand All @@ -13,12 +16,24 @@ public function __construct()
];
}

public function getPaths()
/**
* Return all pools of executors.
*
* @return array
*/
public function getPaths(): array
{
return $this->paths;
}

public function addPath($path)
/**
* Add a new path to executors pools.
*
* @param string $path
*
* @return void
*/
public function addPath(string $path): void
{
array_push($this->paths, $path);
}
Expand Down

0 comments on commit c9b6b80

Please sign in to comment.