|
@@ -23,7 +23,7 @@ abstract class Transformer
|
|
*
|
|
*
|
|
*
|
|
*
|
|
* @param DateTime $dateTime A DateTime object to be used to generate the formatted value
|
|
* @param DateTime $dateTime A DateTime object to be used to generate the formatted value
|
|
- * @param int $lenght The formatted value string lenght
|
|
|
|
|
|
+ * @param int $length The formatted value string length
|
|
* @return string The formatted value
|
|
* @return string The formatted value
|
|
*/
|
|
*/
|
|
abstract public function format(\DateTime $dateTime, $length);
|
|
abstract public function format(\DateTime $dateTime, $length);
|
|
@@ -31,7 +31,7 @@ abstract class Transformer
|
|
/**
|
|
/**
|
|
* Returns a reverse matching regular expression of a string generated by format()
|
|
* Returns a reverse matching regular expression of a string generated by format()
|
|
*
|
|
*
|
|
- * @param int $lenght The lenght of the value to be reverse matched
|
|
|
|
|
|
+ * @param int $length The length of the value to be reverse matched
|
|
* @return string The reverse matching regular expression
|
|
* @return string The reverse matching regular expression
|
|
*/
|
|
*/
|
|
abstract public function getReverseMatchingRegExp($length);
|
|
abstract public function getReverseMatchingRegExp($length);
|
|
@@ -41,7 +41,7 @@ abstract class Transformer
|
|
* regular expression
|
|
* regular expression
|
|
*
|
|
*
|
|
* @param string $matched The matched value
|
|
* @param string $matched The matched value
|
|
- * @param int $lenght The lenght of the Transformer pattern string
|
|
|
|
|
|
+ * @param int $length The length of the Transformer pattern string
|
|
* @return array An associative array
|
|
* @return array An associative array
|
|
*/
|
|
*/
|
|
abstract public function extractDateOptions($matched, $length);
|
|
abstract public function extractDateOptions($matched, $length);
|
|
@@ -50,7 +50,7 @@ abstract class Transformer
|
|
* Pad a string with zeros to the left
|
|
* Pad a string with zeros to the left
|
|
*
|
|
*
|
|
* @param string $value The string to be padded
|
|
* @param string $value The string to be padded
|
|
- * @param int $lenght The lenght to pad
|
|
|
|
|
|
+ * @param int $length The length to pad
|
|
* @return string The padded string
|
|
* @return string The padded string
|
|
*/
|
|
*/
|
|
protected function padLeft($value, $length)
|
|
protected function padLeft($value, $length)
|