Parse error: syntax error, unexpected '$_POST' (T_VARIABLE) in C:\xampp3\htdocs\htdocsManagement\ecms.src\ecms.ajax\ajax.handle.readData.php on line 8
<?php
    header("Content-Type: application/json");
    require_once("../class.core.php");
    class ajaxReadData {
        private $mAnswer = array("isValid" => true);
        private $mType = $_POST["mType"];
        public function __construct() {
            global $workflowHandler;
            global $systemHandler;
            echo $this->mType;
            $this->getResult();
        }
        private function getResult() {
            echo json_encode($this->mAnswer);
        }
    } (new ajaxReadData());
?>
what is the error?
 
     
    