Interface shardimage\shardimagephpapi\base\resources\ResourceInterface
Implemented by | shardimage\shardimagephpapi\base\resources\BinaryStringResource, shardimage\shardimagephpapi\base\resources\FilePathResource, shardimage\shardimagephpapi\base\resources\StreamResource |
---|
Base resource
Public Methods
Method Details
public abstract void delete ( ) |
public abstract static void fromResource ( $resource, $name ) | ||
$resource | ||
$name |
public abstract void getContent ( ) |
public abstract string|null getMimeType ( ) | ||
return | string|null | MIME type |
---|
public abstract void getName ( ) |
public abstract resource|null getResource ( ) | ||
return | resource|null | Resource of content |
---|
public abstract integer|null getSize ( ) | ||
return | integer|null | Size in bytes |
---|
public abstract string|null getUrl ( ) | ||
return | string|null | URL of content |
---|
public abstract static void isCompatible ( $variable ) | ||
$variable |