for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace VGirol\JsonApiFaker\Factory;
trait HasVersion
{
/**
* Undocumented variable
*
* @var string
*/
public $version;
* Undocumented function
* @param string $version
* @return static
public function setVersion(string $version)
$this->version = $version;
return $this;
}
public function fakeVersion()
$faker = \Faker\Factory::create();
return $this->setVersion(
$faker->randomDigitNotNull . '.' . $faker->randomDigit
);