I need to refactor the following code:
public function hasPlan() : bool
{
return $this->reference === 'unico' || $this->reference === 'simultaneo';
}
I would like some tip that returns Boolean and tell me that the $reference
variable is equal to the string 'unico' or the 'simultaneous' string.