Skip to content

Commit 8a642d0

Browse files
committed
Ref #52 - Add examples that have @example tags into them and use multiple lines
1 parent aa663b0 commit 8a642d0

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

tests/phar/data/src/StringExample.php

+18
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,31 @@ class IPv4Address implements Stringable {
99
private string $oct3;
1010
private string $oct4;
1111

12+
/**
13+
* Elementum semper nullam primis tempus quisque tempor.
14+
*
15+
* @example
16+
* $redis->pipeline()
17+
* ->select(1)
18+
* ->del('newkey')
19+
* ->select(0)
20+
* ->del('newkey')
21+
* ->mset(['source1' => 'value1', 'exists' => 'old_value'])
22+
* ->exec();
23+
*/
1224
public function __construct(string $oct1, string $oct2, string $oct3, string $oct4) {
1325
$this->oct1 = $oct1;
1426
$this->oct2 = $oct2;
1527
$this->oct3 = $oct3;
1628
$this->oct4 = $oct4;
1729
}
1830

31+
/**
32+
* Elementum semper nullam primis tempus quisque tempor.
33+
*
34+
* @example $redis->copy('source1', 'newkey');
35+
* @example $redis->copy('source1', 'newkey', ['db' => 1]);
36+
*/
1937
public function __toString(): string {
2038
return "$this->oct1.$this->oct2.$this->oct3.$this->oct4";
2139
}

0 commit comments

Comments
 (0)