Merge PR #1936: Vector3:: setComponents() documentation fix

Vector3::setComponents() and override changes/removal
This commit is contained in:
Dylan K. Taylor 2018-01-19 08:12:44 +00:00 committed by GitHub
commit 8f928915d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 15 deletions

View File

@ -119,20 +119,6 @@ class Position extends Vector3{
return "Position(level=" . ($this->isValid() ? $this->getLevel()->getName() : "null") . ",x=" . $this->x . ",y=" . $this->y . ",z=" . $this->z . ")";
}
/**
* @param $x
* @param $y
* @param $z
*
* @return Position
*/
public function setComponents($x, $y, $z){
$this->x = $x;
$this->y = $y;
$this->z = $z;
return $this;
}
public function equals(Vector3 $v) : bool{
if($v instanceof Position){
return parent::equals($v) and $v->getLevel() === $this->getLevel();

View File

@ -326,7 +326,7 @@ class Vector3{
* @param $y
* @param $z
*
* @return Vector3
* @return $this
*/
public function setComponents($x, $y, $z){
$this->x = $x;