Item.php 410 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace yiiunit\extensions\mongodb\data\ar;
  3. /**
  4. * @property \MongoDB\BSON\ObjectID|string $_id
  5. * @property string $name
  6. * @property float $price
  7. */
  8. class Item extends ActiveRecord
  9. {
  10. public static function collectionName()
  11. {
  12. return 'item';
  13. }
  14. public function attributes()
  15. {
  16. return [
  17. '_id',
  18. 'name',
  19. 'price',
  20. ];
  21. }
  22. }