Skip to content

Commit 570fce6

Browse files
committed
[PHP] [StepStrategy] Extract method in order to be able to automatically move it
1 parent 3ebbcd8 commit 570fce6

File tree

1 file changed

+5
-0
lines changed
  • examples/php/php-step_strategy-02_replace_type_code_with_strategy/src

1 file changed

+5
-0
lines changed

examples/php/php-step_strategy-02_replace_type_code_with_strategy/src/Step.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ public function __construct(string $title, int $typeCode, ?int $videoDurationInM
2323
}
2424

2525
public function estimatedCompletionMinutes(): int
26+
{
27+
return $this->stepEstimatedCompletionMinutes();
28+
}
29+
30+
public function stepEstimatedCompletionMinutes()
2631
{
2732
$estimation = 0;
2833

0 commit comments

Comments
 (0)