public function __construct(\stdClass $obj) { $this->checkCorrectedFormat($obj); if (!$this->correct()) { return; } $this->setInput($obj); }