for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the box project.
*
* (c) Kevin Herrera <[email protected]>
* Théo Fidry <[email protected]>
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace KevinGH\RequirementChecker;
use Composer\Semver\Semver;
/**
* @private
final class IsPhpVersionFulfilled implements IsFulfilled
{
private $requiredPhpVersion;
* @param string $requiredPhpVersion
public function __construct($requiredPhpVersion)
$this->requiredPhpVersion = $requiredPhpVersion;
}
* {@inheritdoc}
public function __invoke()
return Semver::satisfies(
sprintf('%d.%d.%d', \PHP_MAJOR_VERSION, \PHP_MINOR_VERSION, \PHP_RELEASE_VERSION),
$this->requiredPhpVersion
);