final private function checkScalarValue(string $scalar):bool
    {
        if ($this->strlikeInArray($scalar, $this->scalar) !== false) {
            return (true);
        } else {
            throw new Server500(new \ArrayObject(array("explain" => "Unknow type $scalar in Mercure",
                "solution" => "Type must be : ".json_encode($this->scalar))));
        }
    }
final private function checkScalarValue(string $scalar):bool
    {
        if ($this->strlikeInArray($scalar, $this->scalar) !== false) {
            return (true);
        } else {
            throw new Server500(new \ArrayObject(array("explain" => "Unknow type $scalar in Mercure",
                "solution" => "Type must be : ".json_encode($this->scalar))));
        }
    }
final private function checkScalarValue ( string $ scalar ) : bool { if ( $ this -> strlikeInArray ( $ scalar , $ this -> scalar ) !== false ) { return ( true ) ; } else { throw new Server500 ( new \ ArrayObject ( array ( "explain" => "Unknow type $scalar in Mercure" , "solution" => "Type must be : " . json_encode ( $ this -> scalar ) ) ) ) ; } }
Check if the scalar type exist in Mercure
@param string $scalar Scalar type
@return bool The result of test
@throws Server500 If the scalar does not exist
Check if the scalar type exist in Mercure