gravity($gravity); } /** * Sets the object gravity. * * @param $gravity * * @return $this */ public function gravity($gravity) { if ($gravity instanceof BaseQualifier) { $gravity = $gravity->getValue(); } return $this->setSimpleValue('gravity', $gravity); } /** * Whether to avoid the object. * * @return $this */ public function avoid() { return $this->setSimpleValue('avoid', 'avoid'); } /** * Sets the object weight. * * @param int $weight The weight of the object. * * @return $this */ public function weight($weight) { return $this->setSimpleValue('weight', $weight); } }