<?php

namespace Zizaco\FactoryMuff\Kind;

use Zizaco\FactoryMuff\Kind;

class Integer extends Kind
{
  public function generate()
  {
    $length = substr($this->kind, 8);
    $faker = \Faker\Factory::create();
    return $faker->randomNumber($length);
  }
}
<?php

namespace Zizaco\FactoryMuff\Kind;

use Zizaco\FactoryMuff\Kind;

class Integer extends Kind
{
  public function generate()
  {
    $length = (int) $this->getOption(0, 5);
    $faker = \Faker\Factory::create();
    return $faker->randomNumber($length);
  }
}
Use getOption to get length for integer (with default)
Use getOption to get length for integer (with default)
