Position: populate missing return type information for fromObject()

This commit is contained in:
Dylan K. Taylor 2020-01-18 17:44:14 +00:00
parent 9135877da1
commit 260869c0d5

View File

@ -43,6 +43,12 @@ class Position extends Vector3{
$this->setLevel($level);
}
/**
* @param Vector3 $pos
* @param Level|null $level
*
* @return Position
*/
public static function fromObject(Vector3 $pos, Level $level = null){
return new Position($pos->x, $pos->y, $pos->z, $level);
}