Skip to content

Commit 020861a

Browse files
committed
Missing class doc-blocks
1 parent 51ba7ff commit 020861a

9 files changed

+23
-13
lines changed

src/Application.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44

55
use Assert\Assertion;
66
use DI\ContainerBuilder;
7-
use PhpSchool\PhpWorkshop\Check\CheckInterface;
87
use PhpSchool\PhpWorkshop\Check\CheckRepository;
98
use PhpSchool\PhpWorkshop\Exception\MissingArgumentException;
109
use PhpSchool\PhpWorkshop\Exercise\ExerciseInterface;
1110
use PhpSchool\PhpWorkshop\Factory\ResultRendererFactory;
1211
use PhpSchool\PhpWorkshop\Output\OutputInterface;
13-
use PhpSchool\PhpWorkshop\ResultRenderer\ResultRendererInterface;
1412

1513
/**
16-
* Class Application
14+
* This is the main application class, this takes care of bootstrapping, routing and
15+
* output.
16+
*
1717
* @package PhpSchool\PhpWorkshop
1818
* @author Aydin Hassan <aydin@hotmail.co.uk>
1919
*/
@@ -60,7 +60,7 @@ final class Application
6060
private $bgColour = 'black';
6161

6262
/**
63-
* This is the main application class. It should be instantiated with the title of
63+
* It should be instantiated with the title of
6464
* the workshop and the path to the DI configuration file.
6565
*
6666
* @param string $workshopTitle The workshop title - this is used throughout the application

src/Check/DatabaseCheck.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
use PhpSchool\PhpWorkshop\Event\CliExecuteEvent;
88
use PhpSchool\PhpWorkshop\Event\Event;
99
use PhpSchool\PhpWorkshop\Event\EventDispatcher;
10-
use PhpSchool\PhpWorkshop\Exercise\ExerciseInterface;
11-
use PhpSchool\PhpWorkshop\Exercise\ExerciseType;
1210
use PhpSchool\PhpWorkshop\Exercise\TemporaryDirectoryTrait;
1311
use PhpSchool\PhpWorkshop\ExerciseCheck\DatabaseExerciseCheck;
1412
use PhpSchool\PhpWorkshop\Result\Failure;

src/Check/ListenableCheckInterface.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
use PhpSchool\PhpWorkshop\Event\EventDispatcher;
66

77
/**
8-
* Interface ListenableCheckInterface
8+
* The interface for advanced listener checks which can execute logic at any dispatched event.
9+
*
910
* @package PhpSchool\PhpWorkshop\Check
1011
* @author Aydin Hassan <aydin@hotmail.co.uk>
1112
*/

src/Check/PhpLintCheck.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
use Symfony\Component\Process\Process;
1010

1111
/**
12-
* Class PhpLintCheck
12+
* This check attempts to lint a student's solution and returns
13+
* a success or failure based on the result of the linting.
14+
*
1315
* @package PhpSchool\PhpWorkshop\Check
1416
* @author Aydin Hassan <aydin@hotmail.co.uk>
1517
*/

src/Check/SimpleCheckInterface.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
use PhpSchool\PhpWorkshop\Result\ResultInterface;
88

99
/**
10-
* Class CheckInterface
10+
* The interface for simple checks, checks that execute at one defined point, before or after
11+
* output verification.
12+
*
1113
* @package PhpSchool\PhpWorkshop\Comparator
1214
* @author Aydin Hassan <aydin@hotmail.co.uk>
1315
*/

src/ExerciseDispatcher.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
use Symfony\Component\Process\Process;
2020

2121
/**
22-
* Class ExerciseDispatcher
22+
* This class is used to verify/run a student's solution to an exercise. It routes to the correct
23+
* runner based on the exercise type.
24+
*
2325
* @package PhpSchool\PhpWorkshop
2426
* @author Aydin Hassan <aydin@hotmail.co.uk>
2527
*/

src/ExerciseRenderer.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
use PhpSchool\PhpWorkshop\Output\OutputInterface;
88

99
/**
10-
* Class ExerciseRenderer
10+
* This class is used to render the exercise problem to the student, it also set's the current exercise
11+
* on to the user state object.
12+
*
1113
* @package PhpSchool\PhpWorkshop
1214
* @author Aydin Hassan <aydin@hotmail.co.uk>
1315
*/

src/ExerciseRepository.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
use PhpSchool\PhpWorkshop\Exercise\ExerciseInterface;
1010

1111
/**
12-
* Class ExerciseRepository
12+
* Exercise repository, use to locate individual/all exercises by certain criteria.
13+
*
1314
* @package PhpSchool\PhpWorkshop
1415
* @author Aydin Hassan <aydin@hotmail.co.uk>
1516
*/

src/MarkdownRenderer.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
use AydinHassan\CliMdRenderer\CliRenderer;
77

88
/**
9-
* Class MarkdownRenderer
9+
* Utility to render a markdown string to a string formatted with ANSI escape codes for output
10+
* on the console.
11+
*
1012
* @package PhpSchool\PhpWorkshop
1113
* @author Aydin Hassan <aydin@hotmail.co.uk>
1214
*/

0 commit comments

Comments
 (0)