function StringBasedFileContent::size
returns size of content
Return value
int
Overrides FileContent::size
1 call to StringBasedFileContent::size()
- StringBasedFileContent::truncate in vendor/
mikey179/ vfsstream/ src/ main/ php/ org/ bovigo/ vfs/ content/ StringBasedFileContent.php - Truncates a file to a given length
File
-
vendor/
mikey179/ vfsstream/ src/ main/ php/ org/ bovigo/ vfs/ content/ StringBasedFileContent.php, line 50
Class
- StringBasedFileContent
- Default implementation for file contents based on simple strings.
Namespace
org\bovigo\vfs\contentCode
public function size() {
return strlen($this->content);
}