-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Pins.php
103 lines (90 loc) · 1.91 KB
/
Pins.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<?php
namespace GPIO;
/**
* Represents multiple GPIO pins.
*/
final class Pins implements \Countable, \ArrayAccess, \Iterator {
/**
* Parent chip instance.
*
* @var \GPIO\Chip
*/
private Chip $chip;
/**
* Get the parent chip.
*
* @return \GPIO\Chip
*/
public function getChip(): Chip {}
/**
* Returns the number of pins held by collection.
*
* @return int
*/
public function count(): int {}
/**
* Whether or not an offset exists.
*
* @param mixed $offset An offset to check for.
*
* @return bool
*/
public function offsetExists($offset): bool {}
/**
* Returns the value at specified offset.
*
* @param mixed $offset The offset to retrieve.
*
* @return mixed
*/
public function offsetGet($offset) {}
/**
* Assigns a value to the specified offset.
* Note: this method throws an exception, it is declared as part of \ArrayAccess interface.
*
* @param mixed $offset The offset to assign the value to.
* @param mixed $value The value to set.
*
* @return void
*/
public function offsetSet($offset, $value) {}
/**
* Unsets an offset.
* Note: this method throws an exception, it is declared as part of \ArrayAccess interface.
*
* @param mixed $offset The offset to unset.
*
* @return void
*/
public function offsetUnset($offset) {}
/**
* Returns the current element.
*
* @return mixed
*/
public function current() {}
/**
* Returns the key of the current element.
*
* @return mixed
*/
public function key() {}
/**
* Moves the current position to the next element.
*
* @return void
*/
public function next(): void {}
/**
* Rewinds back to the first element of the Iterator.
*
* @return void
*/
public function rewind(): void {}
/**
* Check if the current position is valid.
*
* @return bool
*/
public function valid(): bool {}
}