FileFactory
in package
Table of Contents
- create() : File
- Create a new fake file.
- image() : File
- Create a new fake image.
- generateImage() : resource
- Generate a dummy image of the given width and height.
Methods
create()
Create a new fake file.
public
create(string $name, int $kilobytes) : File
Parameters
- $name : string
- $kilobytes : int
Return values
File —image()
Create a new fake image.
public
image(string $name[, int $width = 10 ][, int $height = 10 ]) : File
Parameters
- $name : string
- $width : int = 10
- $height : int = 10
Return values
File —generateImage()
Generate a dummy image of the given width and height.
protected
generateImage(int $width, int $height) : resource
Parameters
- $width : int
- $height : int