@@ 163-166 (lines=4) @@ | ||
160 | if (null !== $this->year) { |
|
161 | $string .= $this->year; |
|
162 | } |
|
163 | if (null !== $this->month) { |
|
164 | $string .= '-'; |
|
165 | $string .= str_pad($this->month, 2, '0', STR_PAD_LEFT); |
|
166 | } |
|
167 | if (null !== $this->day) { |
|
168 | $string .= '-'; |
|
169 | $string .= str_pad($this->day, 2, '0', STR_PAD_LEFT); |
|
@@ 167-170 (lines=4) @@ | ||
164 | $string .= '-'; |
|
165 | $string .= str_pad($this->month, 2, '0', STR_PAD_LEFT); |
|
166 | } |
|
167 | if (null !== $this->day) { |
|
168 | $string .= '-'; |
|
169 | $string .= str_pad($this->day, 2, '0', STR_PAD_LEFT); |
|
170 | } |
|
171 | ||
172 | return $string; |
|
173 | } |