Set the method the hook should apply to.
string $method: The method that the hook attribute applies to. This only needs to be set when the attribute is on the class.
public function setMethod(string $method) : static { $this->method = $method; return $this; }