Skip to content

Commit b7579ae

Browse files
committed
KRF-360 #resolve Made all aware interfaces consistent
1 parent 0cb93da commit b7579ae

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

LoopAwareTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ trait LoopAwareTrait
1212
/**
1313
* @see LoopAwareInterface::setLoop
1414
*/
15-
public function setLoop(LoopInterface $loop)
15+
public function setLoop(LoopInterface $loop = null)
1616
{
1717
$this->loop = $loop;
1818
}

LoopExtendedAwareInterface.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ interface LoopExtendedAwareInterface
77
/**
88
* Set the loop of which object is aware of.
99
*
10-
* @param LoopExtendedInterface $loop
10+
* @param LoopExtendedInterface|null $loop
1111
*/
12-
public function setLoop(LoopExtendedInterface $loop);
12+
public function setLoop(LoopExtendedInterface $loop = null);
1313

1414
/**
1515
* Return the loop of which object is aware of.
1616
*
17-
* @return LoopExtendedInterface
17+
* @return LoopExtendedInterface|null
1818
*/
1919
public function getLoop();
2020
}

LoopExtendedAwareTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ trait LoopExtendedAwareTrait
1212
/**
1313
* @see LoopExtendedAwareInterface::setLoop
1414
*/
15-
public function setLoop(LoopExtendedInterface $loop)
15+
public function setLoop(LoopExtendedInterface $loop = null)
1616
{
1717
$this->loop = $loop;
1818
}

LoopSetterAwareInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ interface LoopSetterAwareInterface
99
*
1010
* @param LoopInterface $loop
1111
*/
12-
public function setLoop(LoopInterface $loop);
12+
public function setLoop(LoopInterface $loop = null);
1313
}

0 commit comments

Comments
 (0)