Maslosoft Sprite API
Class SpriteImage
SpriteImage
- Maslosoft\Sprite\Models\SpriteImage implements ArrayAccess
Methods summary
public
|
#
__construct( string $path, Symfony\Component\Finder\SplFileInfo $fileInfo )
Create sprite image data holder |
public
|
|
public
string
|
|
public
boolean
|
|
public
mixed
|
|
public
|
|
public
|
Properties summary
public
string
|
$basePath
Base path for image |
#
''
|
public
Symfony\Component\Finder\SplFileInfo
|
$info
Relative path to image, base for css class name |
#
''
|
public
string
|
$path
Full path to file |
#
''
|
public
integer
|
$size
File size in bytes |
#
0
|
public
integer
|
$width
Width in pixels |
#
0
|
public
integer
|
$height
Height in pixels |
#
0
|
public
string
|
$mime
Mime type |
#
''
|
public
string
|
$type
Image type based on mime data |
#
''
|
public
string
|
$name
CSS sprite name |
#
''
|
public
string
|
$hash
Image checksum |
#
''
|
public
|
$packages
Packages, to which this sprite belongs |
#
[]
|
API documentation generated by ApiGen