This check looks for calls to methods that do not seem to exist on a given type.
It looks for the method on the type itself as well as in inherited classes or
implemented interfaces.
This is most likely a typographical error or the method has been renamed.
This check looks for calls to methods that do not seem to exist on a given type.
It looks for the method on the type itself as well as in inherited classes or
implemented interfaces.
This is most likely a typographical error or the method has been renamed.
Loading history...
31
}
32
33
/**
34
* The Space provided static body for a given cpSpace.
35
* This is merely provided for convenience and you are not required to use it.
36
*/
37
public function getStaticBody(): Body
38
{
39
if (null === $this->staticBody) {
40
$this->setStaticBody(Body::fromSpace($this));
41
}
42
43
return $this->staticBody;
44
}
45
46
/**
47
* Should be called only in the constructor
48
*
49
* @todo Check Chipmunk's way to handle setting a new static body
50
* @throws LogicException
51
*/
52
public function setStaticBody(Body $staticBody): self
53
{
54
// TODO
55
// if (null !== $this->staticBody) {
56
// throw new LogicException("Attempted to replace an already initialized Space's body");
This check looks for calls to methods that do not seem to exist on a given type.
It looks for the method on the type itself as well as in inherited classes or
implemented interfaces.
This is most likely a typographical error or the method has been renamed.
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.