1 | <?php |
||
40 | class File extends SplFileObject implements Readable, Writable, Seekable |
||
41 | { |
||
42 | use IsReadable, IsWritable, IsSeekable; |
||
43 | |||
44 | protected $seekable = true; |
||
45 | |||
46 | /** |
||
47 | * File Constructor |
||
48 | * |
||
49 | * Exactly the same as native SplFileObject constructor except that first it |
||
50 | * resolves the filename if $use_include_path == true, to avoid weird |
||
51 | * behavior with isReadable and isWritable. |
||
52 | * |
||
53 | * @param string $filename The filename to open |
||
54 | * @param string $open_mode The fopen mode |
||
55 | * @param boolean $use_include_path Should fopen search the include path |
||
56 | * @param array $context An array of context options |
||
57 | */ |
||
58 | 6 | public function __construct($filename, $open_mode = 'r', $use_include_path = false, $context = null) |
|
75 | |||
76 | /** |
||
77 | * Get the file name. |
||
78 | * |
||
79 | * Return the entire file path and name of this file. |
||
80 | * |
||
81 | * @return string The file path and name |
||
82 | */ |
||
83 | 1 | public function getName() |
|
87 | |||
88 | /** |
||
89 | * Read in the specified amount of characters from the file. |
||
90 | * |
||
91 | * Read $length characters from the file and return the resulting string. |
||
92 | * |
||
93 | * @param integer $length Amount of characters to read from file |
||
94 | * @return string The specified amount of characters read from file |
||
95 | */ |
||
96 | 3 | public function read($length) |
|
101 | |||
102 | /** |
||
103 | * Read the entire contents of file |
||
104 | * |
||
105 | * @param void |
||
106 | * @return string The entire file contents |
||
107 | * @access public |
||
108 | */ |
||
109 | public function getContents() |
||
113 | |||
114 | /** |
||
115 | * Write data to the output |
||
116 | * |
||
117 | * @param string The data to write |
||
118 | * @return int The number of bytes written |
||
119 | * @access public |
||
120 | */ |
||
121 | 4 | public function write($data) |
|
126 | |||
127 | /** |
||
128 | * Accessor for seekability. |
||
129 | * |
||
130 | * Returns true if possible to seek to a certain position within this file. |
||
131 | * |
||
132 | * @return boolean True if stream is seekable |
||
133 | */ |
||
134 | 1 | public function isSeekable() |
|
138 | |||
139 | /** |
||
140 | * Seek to a position within an input |
||
141 | * |
||
142 | * @param integer Offset to seek to |
||
143 | * @param integer Position from whence the offset should be applied |
||
144 | * @return boolean True if seek was successful |
||
145 | * @access public |
||
146 | */ |
||
147 | 2 | public function seek($pos, $whence = SEEK_SET) |
|
152 | } |
||
153 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.