'ID', 'id_subscription' => 'Abonnement', 'id_product' => 'Produit', 'id_rotating' => 'Produit tournant', 'quantity' => 'Quantité', ]; } /* Méthodes */ /* Getters / setters */ public function getRotating(): ?Rotating { return $this->rotatingRelation; } public function setRotating(Rotating $rotating): self { $this->populateFieldObject('id_rotating', 'rotatingRelation', $rotating); return $this; } public function getSubscription(): Subscription { return $this->subscriptionRelation; } public function setSubscription(Subscription $subscription): self { $this->populateFieldObject('id_subscription', 'subscriptionRelation', $subscription); return $this; } public function getProduct(): ?Product { return $this->productRelation; } public function setProduct(Product $product): self { $this->populateFieldObject('id_product', 'product', $product); return $this; } public function getQuantity(): float { return $this->quantity; } public function setQuantity(float $quantity): self { $this->quantity = $quantity; return $this; } /* Relations */ public function getRotatingRelation(): ActiveQuery { return $this->hasOne(Rotating::class, ['id' => 'id_rotating']); } public function getProductRelation(): ActiveQuery { return $this->hasOne(Product::class, ['id' => 'id_product']); } }