Last active
July 5, 2022 13:10
-
-
Save programarivm/b62b7cd38d5215109929fc61980236f9 to your computer and use it in GitHub Desktop.
Chess\Piece\PieceObserverBoardTrait
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Chess\Piece; | |
use Chess\Board; | |
trait PieceObserverBoardTrait | |
{ | |
public function setBoard(Board $board): void | |
{ | |
$this->board = $board; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment