Skip to content

Commit 0244f70

Browse files
author
Robin Cawser
committed
prepare for deprecation of setLength in generator interface
1 parent bf0f7e4 commit 0244f70

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/Vivait/StringGeneratorBundle/Model/GeneratorInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ interface GeneratorInterface
77
/**
88
* @param integer $length
99
* @return $this
10+
* @deprecated this will be deprecated in version 2.0 in favour of using callbacks on the generator. This is due to
11+
* some generators not actually needing a length - only random string type generators require it.
1012
*/
1113
public function setLength($length);
1214

0 commit comments

Comments
 (0)