for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace KoenHoeijmakers\PaperKeyGenerator\Factories;
use KoenHoeijmakers\PaperKeyGenerator\PaperKeyGenerator;
use KoenHoeijmakers\PaperKeyGenerator\WordLists\EnglishWordList;
use KoenHoeijmakers\PaperKeyGenerator\WordLists\Interfaces\WordListInterface;
class PaperKeyFactory
{
/**
* Factorize a new PaperKey object with the given word list.
*
* @param \KoenHoeijmakers\PaperKeyGenerator\WordLists\Interfaces\WordListInterface $wordList
* @return \KoenHoeijmakers\PaperKeyGenerator\PaperKeyGenerator
*/
public static function create(WordListInterface $wordList)
return new PaperKeyGenerator($wordList);
}
* Factorize a new PaperKey object with a english word list.
public static function english()
return self::create(new EnglishWordList());