Skip to content

Commit 7ca1a12

Browse files
committed
Added @api tags.
1 parent b2057f5 commit 7ca1a12

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

src/CodeStore.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ abstract class CodeStore
4848
* Object constructor.
4949
*
5050
* @param int $indentation The number of spaces per indentation level.
51+
*
52+
* @api
5153
*/
5254
public function __construct($indentation = 2)
5355
{
@@ -63,6 +65,8 @@ public function __construct($indentation = 2)
6365
* @param bool $trim If true the line or lines of code will be trimmed before appending.
6466
*
6567
* @throws \InvalidArgumentException
68+
*
69+
* @api
6670
*/
6771
public function append($line, $trim = true)
6872
{
@@ -90,6 +94,8 @@ public function append($line, $trim = true)
9094
* Appends a part of code to the last line of code.
9195
*
9296
* @param string $part The part of code to be to the last line.
97+
*
98+
* @api
9399
*/
94100
public function appendToLastLine($part)
95101
{
@@ -99,6 +105,8 @@ public function appendToLastLine($part)
99105
//--------------------------------------------------------------------------------------------------------------------
100106
/**
101107
* Removes all code from this code store.
108+
*
109+
* @api
102110
*/
103111
public function clear()
104112
{
@@ -108,6 +116,8 @@ public function clear()
108116
//--------------------------------------------------------------------------------------------------------------------
109117
/**
110118
* Returns the generated code as a single string.
119+
*
120+
* @api
111121
*/
112122
public function getCode()
113123
{
@@ -166,6 +176,8 @@ public function getCode()
166176
* @param string $line The line of code.
167177
*
168178
* @return int
179+
*
180+
* @api
169181
*/
170182
abstract protected function indentationMode($line);
171183

0 commit comments

Comments
 (0)