Skip to content

Commit fdaae09

Browse files
SaggreTheWhatis
andcommitted
Merge branch TheWhatis/master
Co-authored-by: TheWhatis <[email protected]>
1 parent 7b12655 commit fdaae09

File tree

24 files changed

+343
-40
lines changed

24 files changed

+343
-40
lines changed

example/Home.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
2+
***
3+
4+
# Pizza Place (Example documentation)
5+
6+
7+
8+
This is an automatically generated documentation for **Pizza Place (Example documentation)**.
9+
10+
11+
## Namespaces
12+
13+
14+
### \PhpDocumentorMarkdown\Example
15+
16+
#### Classes
17+
18+
| Class | Description |
19+
|-------|-------------|
20+
| [`AbstractProduct`](./classes/PhpDocumentorMarkdown/Example/AbstractProduct.md) | Base class for all products.|
21+
| [`Pizza`](./classes/PhpDocumentorMarkdown/Example/Pizza.md) | A pizza.|
22+
23+
24+
#### Traits
25+
26+
| Trait | Description |
27+
|-------|-------------|
28+
| [`ReviewableTrait`](./classes/PhpDocumentorMarkdown/Example/ReviewableTrait.md) | A trait for reviewable objects.|
29+
30+
31+
32+
#### Interfaces
33+
34+
| Interface | Description |
35+
|-----------|-------------|
36+
| [`ManyInterfaces`](./classes/PhpDocumentorMarkdown/Example/ManyInterfaces.md) | A ManyInterfaces|
37+
| [`ProductInterface`](./classes/PhpDocumentorMarkdown/Example/ProductInterface.md) | Interface for a product.|
38+
39+
40+
41+
### \PhpDocumentorMarkdown\Example\Pizza
42+
43+
#### Classes
44+
45+
| Class | Description |
46+
|-------|-------------|
47+
| [`Base`](./classes/PhpDocumentorMarkdown/Example/Pizza/Base.md) | Represents a pizza base.|
48+
| [`Sauce`](./classes/PhpDocumentorMarkdown/Example/Pizza/Sauce.md) | Pizza sauce class.|
49+
50+
51+
52+
53+
***
54+
> Automatically generated on 2023-11-16
Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
***
2+
3+
# Base
4+
5+
Represents a pizza base.
6+
7+
8+
* Full name: `\PhpDocumentorMarkdown\Example\Pizza\Base`
9+
10+
11+
## Constants
12+
13+
| Constant | Visibility | Type | Value |
14+
|:---------|:-----------|:-----|:------|
15+
|`YEAST_SOURDOUGH_STARTER`|private| |0b1|
16+
|`YEAST_FRESH`|public| |0b10|
17+
|`YEAST_ACTIVE_DRY`|public| |0b11|
18+
19+
## Properties
20+
21+
22+
### sauce
23+
24+
The sauce used.
25+
26+
```php
27+
protected \PhpDocumentorMarkdown\Example\Pizza\Sauce $sauce
28+
```
29+
30+
31+
32+
33+
34+
35+
***
36+
37+
### yeast
38+
39+
Type of yeast used.
40+
41+
```php
42+
protected int $yeast
43+
```
44+
45+
46+
47+
48+
49+
50+
***
51+
52+
## Methods
53+
54+
55+
### __construct
56+
57+
58+
59+
```php
60+
public __construct(\PhpDocumentorMarkdown\Example\Pizza\Sauce $sauce, int $yeast = self::YEAST_SOURDOUGH_STARTER): mixed
61+
```
62+
63+
64+
65+
66+
67+
68+
69+
70+
**Parameters:**
71+
72+
| Parameter | Type | Description |
73+
|-----------|------|-------------|
74+
| `$sauce` | **\PhpDocumentorMarkdown\Example\Pizza\Sauce** | |
75+
| `$yeast` | **int** | |
76+
77+
78+
79+
80+
***
81+
82+
### getSauce
83+
84+
85+
86+
```php
87+
public getSauce(): \PhpDocumentorMarkdown\Example\Pizza\Sauce
88+
```
89+
90+
91+
92+
93+
94+
95+
96+
97+
98+
99+
100+
***
101+
102+
### getYeast
103+
104+
105+
106+
```php
107+
public getYeast(): int
108+
```
109+
110+
111+
112+
113+
114+
115+
116+
117+
118+
119+
120+
***
121+
122+
123+
***
124+
> Automatically generated on 2023-11-16

src/Example/ManyInterfaces.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
namespace PhpDocumentorMarkdown\Example;
4+
5+
use JsonSerializable;
6+
7+
/**
8+
* A ManyInterfaces
9+
*
10+
* ManyInterfaces description {@see AbstractProduct}
11+
*/
12+
interface ManyInterfaces extends ProductInterface, JsonSerializable
13+
{
14+
// ...
15+
}

src/Example/Pizza.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,17 @@ class Pizza extends AbstractProduct implements ProductInterface, JsonSerializabl
2929
/**
3030
* Pizza base.
3131
*
32+
* Property base description {@see ManyInterfaces}
33+
*
3234
* @var Base|null
3335
*/
3436
protected ?Base $base;
3537

3638
/**
39+
* Constructor title
40+
*
41+
* Constructor description {@see ManyInterfaces} {@see https://example.com}
42+
*
3743
* @param string $name Product name.
3844
* @param float $price Product price.
3945
* @param Base|null $base Pizza base.
@@ -69,4 +75,9 @@ public function jsonSerialize()
6975
{
7076
// TODO: Implement jsonSerialize() method.
7177
}
78+
79+
public function toArray(): array
80+
{
81+
// TODO: Implement toArray() method.
82+
}
7283
}

tests/Functional/expected/Home.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ This is an automatically generated documentation for **Pizza Place (Example docu
2424
| Interface | Description |
2525
|-----------------------------------------------------------------------------------|--------------------------|
2626
| [`Arrayable`](./classes/PhpDocumentorMarkdown/Example/Arrayable.md) | |
27+
| [`ManyInterfaces`](./classes/PhpDocumentorMarkdown/Example/ManyInterfaces.md) | A ManyInterfaces |
2728
| [`ProductInterface`](./classes/PhpDocumentorMarkdown/Example/ProductInterface.md) | Interface for a product. |
2829

2930
### \PhpDocumentorMarkdown\Example\Pizza

tests/Functional/expected/classes/PhpDocumentorMarkdown/Example/AbstractProduct.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
Base class for all products.
44

5+
***
6+
57
* Full name: `\PhpDocumentorMarkdown\Example\AbstractProduct`
68
* This class implements:
79
[`\PhpDocumentorMarkdown\Example\ProductInterface`](./ProductInterface.md)

tests/Functional/expected/classes/PhpDocumentorMarkdown/Example/Arrayable.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Arrayable
22

3+
***
4+
35
* Full name: `\PhpDocumentorMarkdown\Example\Arrayable`
46

57
## Methods
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# ManyInterfaces
2+
3+
ManyInterfaces description
4+
5+
- **See:** \PhpDocumentorMarkdown\Example\AbstractProduct
6+
7+
***
8+
9+
* Full name: `\PhpDocumentorMarkdown\Example\ManyInterfaces`
10+
* Parent interfaces:
11+
[`\PhpDocumentorMarkdown\Example\ProductInterface`](./ProductInterface.md)[`JsonSerializable`](../../JsonSerializable.md),
12+
13+
## Inherited methods
14+
15+
### toArray
16+
17+
Get the instance as an array.
18+
19+
```php
20+
public toArray(): array
21+
```
22+
23+
***
24+
25+
### __construct
26+
27+
```php
28+
public __construct(string $name, float $price): mixed
29+
```
30+
31+
**Parameters:**
32+
33+
| Parameter | Type | Description |
34+
|-----------|------------|----------------|
35+
| `$name` | **string** | Product name. |
36+
| `$price` | **float** | Product price. |
37+
38+
***
39+
40+
### getName
41+
42+
Get the name of the product.
43+
44+
```php
45+
public getName(): string
46+
```
47+
48+
***
49+
50+
### getPrice
51+
52+
Get the price of the product.
53+
54+
```php
55+
public getPrice(): float
56+
```
57+
58+
***
59+
60+
### getTaxRate
61+
62+
Get the tax rate for this product.
63+
64+
```php
65+
public getTaxRate(): float
66+
```
67+
68+
***

tests/Functional/expected/classes/PhpDocumentorMarkdown/Example/Pizza.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
A pizza \| pie.
44

5+
***
6+
57
* Full name: `\PhpDocumentorMarkdown\Example\Pizza`
68
* Parent class: [`\PhpDocumentorMarkdown\Example\AbstractProduct`](./AbstractProduct.md)
79
* This class implements:
@@ -38,16 +40,27 @@ Pizza base.
3840
protected \PhpDocumentorMarkdown\Example\Pizza\Base|null $base
3941
```
4042

43+
Property base description
44+
45+
- **See:** \PhpDocumentorMarkdown\Example\ManyInterfaces
46+
4147
***
4248

4349
## Methods
4450

4551
### __construct
4652

53+
Constructor title
54+
4755
```php
4856
public __construct(string $name, float $price, \PhpDocumentorMarkdown\Example\Pizza\Base|null $base = null): mixed
4957
```
5058

59+
Constructor description
60+
61+
- **See:** \PhpDocumentorMarkdown\Example\ManyInterfaces
62+
- **See:** https://example.com
63+
5164
**Parameters:**
5265

5366
| Parameter | Type | Description |
@@ -90,6 +103,16 @@ public jsonSerialize(): mixed
90103

91104
***
92105

106+
### toArray
107+
108+
Get the instance as an array.
109+
110+
```php
111+
public toArray(): array
112+
```
113+
114+
***
115+
93116
## Inherited methods
94117

95118
### getTaxRate

tests/Functional/expected/classes/PhpDocumentorMarkdown/Example/Pizza/Base.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
Represents a pizza base.
44

5+
***
6+
57
* Full name: `\PhpDocumentorMarkdown\Example\Pizza\Base`
68

79
## Constants

0 commit comments

Comments
 (0)