SunnyCashLogoStorageReader
in package
implements
SunnyCashLogoStorageReaderInterface
Class SunnyCashLogoStorageReader
Interfaces, Classes and Traits
- SunnyCashLogoStorageReaderInterface
- Interface SunnyCashLogoStorageReaderInterface
Table of Contents
- $logoFactory : SunnyCashLogoFactory
- $rootDirectory : ExistingDirectory
- __construct() : mixed
- SunnyCashLogoStorageReader constructor.
- getLogo() : SunnyCashLogo
- Gets the requested logo from the filesystem.
- generateFilename() : string
- Replaces all characters of a string that are illegal in common filesystems with an underscore (_) and returns it.
- logoExists() : bool
- Checks if the requested logo is present.
Properties
$logoFactory
protected
SunnyCashLogoFactory
$logoFactory
$rootDirectory
protected
ExistingDirectory
$rootDirectory
Methods
__construct()
SunnyCashLogoStorageReader constructor.
public
__construct(SunnyCashLogoFactory $logoFactory, ExistingDirectory $rootDirectory) : mixed
Parameters
- $logoFactory : SunnyCashLogoFactory
- $rootDirectory : ExistingDirectory
Return values
mixed —getLogo()
Gets the requested logo from the filesystem.
public
getLogo(StringType $logoUrl) : SunnyCashLogo
Parameters
- $logoUrl : StringType
-
The requested logo
Return values
SunnyCashLogo —generateFilename()
Replaces all characters of a string that are illegal in common filesystems with an underscore (_) and returns it.
protected
generateFilename(StringType $subject) : string
Parameters
- $subject : StringType
Return values
string —logoExists()
Checks if the requested logo is present.
protected
logoExists(StringType $logoUrl) : bool
Parameters
- $logoUrl : StringType
-
The requested logo