-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.php
28 lines (22 loc) · 912 Bytes
/
example.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
/**
* Test scenario for the Code Hint Aggregator where it targets itself.
* @package CodeHintAggregator
* @author eCommunities
* @license unlicense
*/
namespace eCommunities\CodeHintAggregator;
use eCommunities\CodeHintAggregator\Aggregator;
// Include and instantiate the Aggregator class file
require_once "Aggregator.php";
$aggregator = new Aggregator();
// TODO Set Ignore Resource list
//$aggregator->ignore(array());
// Set this to the root of your application library
$application_root = __DIR__;
// Traverse the reseource tree to identify PHP files
$aggregator->listFiles($application_root);
// Iterate over the identified PHP files, generate the documented class/method declarations, and output to screen.
$aggregator->output($aggregator::OUTPUT_SCREEN);
// The alternative format is via method chaining
//$aggregator->listFiles($application_root)->output($aggregator::OUTPUT_SCREEN);