Skip to content

Commit

Permalink
OXDEV-6455: Add descriptions to Vendor-Type and relation-services
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelOxid committed Feb 14, 2024
1 parent 6bd273b commit f8d6eba
Show file tree
Hide file tree
Showing 31 changed files with 99 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Address/Service/AddressRelations.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public function __construct(
}

/**
* Field of Storefront module's Address-Type.
* @Field()
*/
public function country(AbstractAddress $address): ?Country
Expand All @@ -44,6 +45,7 @@ public function country(AbstractAddress $address): ?Country
}

/**
* Field of Storefront module's Address-Type.
* @Field()
*/
public function state(AbstractAddress $address): ?State
Expand Down
1 change: 1 addition & 0 deletions src/Banner/Service/RelationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public function __construct(
}

/**
* Field of Storefront module's Banner-Type.
* @Field()
*/
public function getProduct(Banner $banner): ?Product
Expand Down
5 changes: 5 additions & 0 deletions src/Basket/Service/BasketCostRelations.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public function __construct(BasketCostInfrastructure $basketCostInfrastructure)
}

/**
* Field of Storefront module's BasketCost-Type.
* @Field()
*/
public function getProductNet(BasketCost $basketCost): Price
Expand All @@ -42,6 +43,7 @@ public function getProductNet(BasketCost $basketCost): Price
}

/**
* Field of Storefront module's BasketCost-Type.
* @Field()
*/
public function getProductGross(BasketCost $basketCost): BasketProductBruttoSum
Expand All @@ -50,6 +52,7 @@ public function getProductGross(BasketCost $basketCost): BasketProductBruttoSum
}

/**
* Field of Storefront module's BasketCost-Type.
* @Field()
*/
public function getPayment(BasketCost $basketCost): Price
Expand All @@ -61,6 +64,7 @@ public function getPayment(BasketCost $basketCost): Price
}

/**
* Field of Storefront module's BasketCost-Type.
* @Field()
*/
public function getCurrency(BasketCost $basketCost): Currency
Expand All @@ -69,6 +73,7 @@ public function getCurrency(BasketCost $basketCost): Currency
}

/**
* Field of Storefront module's BasketCost-Type.
* @Field()
*/
public function getDelivery(BasketCost $basketCost): Price
Expand Down
1 change: 1 addition & 0 deletions src/Basket/Service/BasketItemRelationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public function __construct(
}

/**
* Field of Storefront module's BasketItem-Type.
* @Field()
*/
public function product(BasketItem $basketItem): ?Product
Expand Down
1 change: 1 addition & 0 deletions src/Basket/Service/BasketPaymentService.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public function __construct(
}

/**
* Field of Storefront module's BasketPayment-Type.
* @Field()
*/
public function cost(BasketPayment $basketPayment): Price
Expand Down
1 change: 1 addition & 0 deletions src/Basket/Service/BasketProductBruttoSumRelations.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public function __construct(
}

/**
* Field of Storefront module's BasketProductBruttoSum-Type.
* @Field()
*
* @return BasketProductVats[]
Expand Down
7 changes: 7 additions & 0 deletions src/Basket/Service/BasketRelationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ public function __construct(
}

/**
* Field of Storefront module's Basket-Type.
* @Field()
*/
public function owner(Basket $basket): ?BasketOwner
Expand All @@ -92,6 +93,7 @@ public function owner(Basket $basket): ?BasketOwner
}

/**
* Field of Storefront module's Basket-Type.
* @Field()
*
* @return BasketItem[]
Expand All @@ -109,6 +111,7 @@ public function items(
}

/**
* Field of Storefront module's Basket-Type.
* @Field()
*/
public function cost(Basket $basket): BasketCost
Expand All @@ -117,6 +120,7 @@ public function cost(Basket $basket): BasketCost
}

/**
* Field of Storefront module's Basket-Type.
* @Field()
*
* @return Voucher[]
Expand All @@ -127,6 +131,7 @@ public function vouchers(Basket $basket): array
}

/**
* Field of Storefront module's Basket-Type.
* @Field()
*/
public function deliveryAddress(Basket $basket): ?DeliveryAddress
Expand All @@ -147,6 +152,7 @@ public function deliveryAddress(Basket $basket): ?DeliveryAddress
}

/**
* Field of Storefront module's Basket-Type.
* Returns selected payment for current basket.
*
* @Field()
Expand All @@ -169,6 +175,7 @@ public function payment(Basket $basket): ?Payment
}

/**
* Field of Storefront module's Basket-Type.
* Returns selected delivery method for current basket.
*
* @Field()
Expand Down
2 changes: 2 additions & 0 deletions src/Basket/Service/PublicBasketRelationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public function __construct(
}

/**
* Field of Storefront module's PublicBasket-Type.
* @Field()
*/
public function owner(PublicBasketDataType $basket): BasketOwner
Expand All @@ -48,6 +49,7 @@ public function owner(PublicBasketDataType $basket): BasketOwner
}

/**
* Field of Storefront module's PublicBasket-Type.
* @Field()
*
* @return BasketItem[]
Expand Down
6 changes: 6 additions & 0 deletions src/Category/Service/RelationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public function __construct(
}

/**
* Field of Storefront module's Category-Type.
* @Field()
*/
public function getParent(Category $category): ?Category
Expand All @@ -62,6 +63,7 @@ public function getParent(Category $category): ?Category
}

/**
* Field of Storefront module's Category-Type.
* @Field()
*/
public function getRoot(Category $category): ?Category
Expand All @@ -70,6 +72,7 @@ public function getRoot(Category $category): ?Category
}

/**
* Field of Storefront module's Category-Type.
* @Field()
*
* @return Category[]
Expand All @@ -86,6 +89,7 @@ public function getChildren(Category $category): array
}

/**
* Field of Storefront module's Category-Type.
* @Field()
*/
public function getSeo(Category $category): Seo
Expand All @@ -94,6 +98,7 @@ public function getSeo(Category $category): Seo
}

/**
* Field of Storefront module's Category-Type.
* @Field()
*
* @return Product[]
Expand Down Expand Up @@ -136,6 +141,7 @@ private function getCategoryById(ID $id): ?Category
}

/**
* Field of Storefront module's Category-Type.
* @Field()
*
* @return CategoryAttribute[]
Expand Down
2 changes: 2 additions & 0 deletions src/Content/Service/RelationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public function __construct(
}

/**
* Field of Storefront module's Content-Type.
* @Field()
*/
public function getSeo(Content $content): Seo
Expand All @@ -48,6 +49,7 @@ public function getSeo(Content $content): Seo
}

/**
* Field of Storefront module's Content-Type.
* @Field()
*/
public function getCategory(Content $content): ?CategoryDataType
Expand Down
1 change: 1 addition & 0 deletions src/Country/Service/RelationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public function __construct(StateService $stateService)
}

/**
* Field of Storefront module's Country-Type.
* @Field()
*
* @return StateDataType[]
Expand Down
8 changes: 8 additions & 0 deletions src/Customer/Service/RelationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ public function __construct(
}

/**
* Field of Storefront module's Customer-Type.
* @Field()
*
* @return ReviewDataType[]
Expand All @@ -88,6 +89,7 @@ public function getReviews(CustomerDataType $customer): array
}

/**
* Field of Storefront module's Customer-Type.
* @Field()
*/
public function getNewsletterStatus(): ?NewsletterStatusType
Expand All @@ -100,6 +102,7 @@ public function getNewsletterStatus(): ?NewsletterStatusType
}

/**
* Field of Storefront module's Customer-Type.
* @Field()
*
* @return DeliveryAddress[]
Expand All @@ -110,6 +113,7 @@ public function deliveryAddresses(CustomerDataType $customer): array
}

/**
* Field of Storefront module's Customer-Type.
* @Field()
*/
public function invoiceAddress(): InvoiceAddressDataType
Expand All @@ -118,6 +122,7 @@ public function invoiceAddress(): InvoiceAddressDataType
}

/**
* Field of Storefront module's Customer-Type.
* @Field()
*/
public function getBasket(CustomerDataType $customer, string $title): BasketDataType
Expand All @@ -126,6 +131,7 @@ public function getBasket(CustomerDataType $customer, string $title): BasketData
}

/**
* Field of Storefront module's Customer-Type.
* @Field()
*
* @return BasketDataType[]
Expand All @@ -136,6 +142,7 @@ public function getBaskets(CustomerDataType $customer): array
}

/**
* Field of Storefront module's Customer-Type.
* @Field()
*
* @return OrderDataType[]
Expand All @@ -146,6 +153,7 @@ public function getOrders(CustomerDataType $customer, ?PaginationFilter $paginat
}

/**
* Field of Storefront module's Customer-Type.
* @Field
*
* @return OrderFile[]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public function __construct(BasketInfrastructure $basketInfrastructure)
}

/**
* Field of Storefront module's BasketDeliveryMethod-Type.
* @Field()
*/
public function cost(BasketDeliveryMethod $basketDeliveryMethod): Price
Expand Down
1 change: 1 addition & 0 deletions src/File/Service/FileRelations.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public function __construct(
}

/**
* Field of Storefront module's File-Type.
* @Field()
*/
public function getProduct(File $file): Product
Expand Down
2 changes: 2 additions & 0 deletions src/Manufacturer/Service/RelationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public function __construct(
}

/**
* Field of Storefront module's Manufacturer-Type.
* @Field()
*/
public function getSeo(Manufacturer $manufacturer): Seo
Expand All @@ -43,6 +44,7 @@ public function getSeo(Manufacturer $manufacturer): Seo
}

/**
* Field of Storefront module's Manufacturer-Type.
* @Field()
*
* @return ProductDataType[]
Expand Down
5 changes: 5 additions & 0 deletions src/Order/Service/OrderCostRelations.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public function __construct(OrderCostInfrastructure $orderCostInfrastructure)
}

/**
* Field of Storefront module's OrderCost-Type.
* @Field()
*/
public function getDelivery(OrderCost $orderCost): Price
Expand All @@ -42,6 +43,7 @@ public function getDelivery(OrderCost $orderCost): Price
}

/**
* Field of Storefront module's OrderCost-Type.
* @Field()
*/
public function getPayment(OrderCost $orderCost): Price
Expand All @@ -53,6 +55,7 @@ public function getPayment(OrderCost $orderCost): Price
}

/**
* Field of Storefront module's OrderCost-Type.
* @Field()
*/
public function getProductNet(OrderCost $orderCost): Price
Expand All @@ -64,6 +67,7 @@ public function getProductNet(OrderCost $orderCost): Price
}

/**
* Field of Storefront module's OrderCost-Type.
* @Field()
*/
public function getProductGross(OrderCost $orderCost): OrderProductBruttoSum
Expand All @@ -72,6 +76,7 @@ public function getProductGross(OrderCost $orderCost): OrderProductBruttoSum
}

/**
* Field of Storefront module's OrderCost-Type.
* @Field()
*/
public function getCurrency(OrderCost $orderCost): Currency
Expand Down
1 change: 1 addition & 0 deletions src/Order/Service/OrderDeliveryRelations.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public function __construct(OrderDeliveryInfrastructure $orderDeliveryInfrastruc
}

/**
* Field of Storefront module's OrderDelivery-Type.
* @Field()
*/
public function getProvider(OrderDelivery $orderDelivery): DeliveryProvider
Expand Down
1 change: 1 addition & 0 deletions src/Order/Service/OrderFileRelations.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public function __construct(
}

/**
* Field of Storefront module's OrderFile-Type.
* @Field()
*/
public function file(OrderFile $orderFile): ?FileDataType
Expand Down
1 change: 1 addition & 0 deletions src/Order/Service/OrderItemRelations.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public function __construct(
}

/**
* Field of Storefront module's OrderItem-Type.
* @Field()
*/
public function getProduct(OrderItem $orderItem): ?Product
Expand Down
Loading

0 comments on commit f8d6eba

Please sign in to comment.