public function fakeEntity($entity = null) { if ($entity === null) { throw new MissingRequiredOptionException('entity to fake'); } $entityFiller = new EntityFiller($entity, $this); return $entityFiller->fill(); }