public function isValid() { if ($this->byte == '' || $this->posto == '' || !parent::isValid()) { return false; } return true; }