VersionSpecificCodeSample
in package
implements
VersionSpecificCodeSampleInterface
FinalYes
Tags
Table of Contents
Interfaces
Properties
Methods
- __construct() : mixed
- getCode() : string
- getConfiguration() : null|array<string, mixed>
- isSuitableFor() : bool
Properties
$codeSample
private
CodeSampleInterface
$codeSample
$versionSpecification
private
VersionSpecificationInterface
$versionSpecification
Methods
__construct()
public
__construct(string $code, VersionSpecificationInterface $versionSpecification[, null|array<string, mixed> $configuration = null ]) : mixed
Parameters
- $code : string
- $versionSpecification : VersionSpecificationInterface
- $configuration : null|array<string, mixed> = null
getCode()
public
getCode() : string
Return values
stringgetConfiguration()
public
getConfiguration() : null|array<string, mixed>
Return values
null|array<string, mixed>isSuitableFor()
public
isSuitableFor(int $version) : bool
Parameters
- $version : int