PHP Class MageScan\Check\Patch\MageReport

Inheritance: extends MageScan\Check\AbstractCheck
Show file Open project: steverobbins/magescan Class Usage Examples

Public Properties

Property Type Description
$patches List of patches to check for

Public Methods

Method Description
__construct ( string $url ) Set the URL
check ( string $endpoint ) : integer Check if a given patch is installed
checkAll ( ) : array Check all patches

Protected Methods

Method Description
getPatchName ( string $path ) : string Get patch name from path
parseResponse ( Response $response ) : string Derive if patched or not based on the response

Method Details

__construct() public method

Set the URL
public __construct ( string $url )
$url string

check() public method

Check if a given patch is installed
public check ( string $endpoint ) : integer
$endpoint string
return integer

checkAll() public method

Check all patches
public checkAll ( ) : array
return array

getPatchName() protected method

Get patch name from path
protected getPatchName ( string $path ) : string
$path string
return string

parseResponse() protected method

Derive if patched or not based on the response
protected parseResponse ( Response $response ) : string
$response GuzzleHttp\Psr7\Response
return string

Property Details

$patches public property

List of patches to check for
public $patches