public function __wakeup() { if (version_compare($this->getObjectVersion('MAJOR'), Condorcet::getVersion('MAJOR'), '!=')) { throw new CondorcetException(11, 'Your object version is ' . $this->getObjectVersion() . ' but the class engine version is ' . Condorcet::getVersion('ENV')); } }
} </style> </head> <body> <header style="text-align:center;"> <img src="../../condorcet-logo.png" alt="Condorcet Class" style="width:15%;"> </header> <h1><?php echo TEST_NAME; ?> </h1> <em style="font-weight:bold;"><a href="https://github.com/julien-boudry/Condorcet" target="_blank">Condorcet Class</a> version : <?php echo Condorcet::getVersion(); ?> </em><br> <em> Number of Candidates : <?php echo $election->countCandidates(); ?> | Number of votes : <?php echo $election->countVotes(); ?> </em>