public static create ( $value ) : PhpGitHooks\Module\Configuration\Domain\Message | ||
$value | ||
Результат | PhpGitHooks\Module\Configuration\Domain\Message |
/** * @return PreCommit */ public static function createAllEnabled() { return self::create(new Undefined(false), EnabledStub::create(true), PreCommitExecuteStub::create(ComposerStub::createEnabled(), JsonLintStub::createEnabled(), PhpLintStub::createEnabled(), PhpMdStub::createEnabled(), PhpCsStub::createEnabled(), PhpCsFixerStub::createEnabled(), PhpUnitStub::createEnabled(), PhpUnitStrictCoverageStub::createEnabled(), PhpUnitGuardCoverageStub::createEnabled('fix')), MessagesStub::create(MessageStub::create('ok'), MessageStub::create('fix'))); }
/** * @return PhpUnitGuardCoverage */ public static function setUndefined() { return self::create(new Undefined(true), EnabledStub::create(false), MessageStub::create(null)); }
/** * @return PrePush */ public static function createAllEnabled() { return self::create(new Undefined(false), EnabledStub::create(true), PrePushExecuteStub::createEnabled(), MessagesStub::create(MessageStub::create('0k'), MessageStub::create('Faltal'))); }