BeginnerPreconditions.php
Namespace
PhpTuf\ComposerStager\Internal\Precondition\ServiceFile
-
vendor/
php-tuf/ composer-stager/ src/ Internal/ Precondition/ Service/ BeginnerPreconditions.php
View source
<?php
declare (strict_types=1);
namespace PhpTuf\ComposerStager\Internal\Precondition\Service;
use PhpTuf\ComposerStager\API\Environment\Service\EnvironmentInterface;
use PhpTuf\ComposerStager\API\Precondition\Service\BeginnerPreconditionsInterface;
use PhpTuf\ComposerStager\API\Precondition\Service\CommonPreconditionsInterface;
use PhpTuf\ComposerStager\API\Precondition\Service\NoUnsupportedLinksExistInterface;
use PhpTuf\ComposerStager\API\Precondition\Service\StagingDirDoesNotExistInterface;
use PhpTuf\ComposerStager\API\Translation\Factory\TranslatableFactoryInterface;
use PhpTuf\ComposerStager\API\Translation\Value\TranslatableInterface;
/**
* @package Precondition
*
* @internal Don't depend directly on this class. It may be changed or removed at any time without notice.
*/
final class BeginnerPreconditions extends AbstractPreconditionsTree implements BeginnerPreconditionsInterface {
public function __construct(EnvironmentInterface $environment, CommonPreconditionsInterface $commonPreconditions, NoUnsupportedLinksExistInterface $noUnsupportedLinksExist, StagingDirDoesNotExistInterface $stagingDirDoesNotExist, TranslatableFactoryInterface $translatableFactory) {
parent::__construct($environment, $translatableFactory, $commonPreconditions, $noUnsupportedLinksExist, $stagingDirDoesNotExist);
}
public function getName() : TranslatableInterface {
return $this->t('Beginner preconditions');
}
public function getDescription() : TranslatableInterface {
return $this->t('The preconditions for beginning the staging process.');
}
protected function getFulfilledStatusMessage() : TranslatableInterface {
return $this->t('The preconditions for beginning the staging process are fulfilled.');
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
BeginnerPreconditions | @package Precondition |