PHP Class MageScan\Check\Patch\MageReport

Inheritance: extends MageScan\Check\AbstractCheck
Afficher le fichier Open project: steverobbins/magescan Class Usage Examples

Méthodes publiques

Свойство Type Description
$patches List of patches to check for

Méthodes publiques

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

Méthodes protégées

Méthode 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 méthode

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

check() public méthode

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

checkAll() public méthode

Check all patches
public checkAll ( ) : array
Résultat array

getPatchName() protected méthode

Get patch name from path
protected getPatchName ( string $path ) : string
$path string
Résultat string

parseResponse() protected méthode

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

Property Details

$patches public_oe property

List of patches to check for
public $patches