Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 570fce6

Browse files
[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)

AltStyle によって変換されたページ (->オリジナル) /