AccidentCasesScoreObj.php 938 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace common\util;
  3. use common\models\AccidentCasesScore;
  4. class AccidentCasesScoreObj
  5. {
  6. public int $id;
  7. public int $accident_id;
  8. public int $dictionary_id;
  9. public int $category;
  10. public ?string $content;
  11. public ?string $content_two;
  12. public float $score;
  13. public array $dimension;
  14. /**
  15. * @param AccidentCasesScore $AccidentCasesScore
  16. */
  17. public function __construct(AccidentCasesScore $AccidentCasesScore)
  18. {
  19. $this->id = $AccidentCasesScore->id;
  20. $this->accident_id = $AccidentCasesScore->accident_id;
  21. $this->dictionary_id = $AccidentCasesScore->dictionary_id;
  22. $this->category = $AccidentCasesScore->category;
  23. $this->content = $AccidentCasesScore->content;
  24. $this->content_two = $AccidentCasesScore->content_two;
  25. $this->score = $AccidentCasesScore->score;
  26. $this->dimension = $AccidentCasesScore->dimension;
  27. }
  28. }