-
-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhanced PHPDoc. Removed @type support.
- Loading branch information
Showing
5 changed files
with
40 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,7 +48,6 @@ public function getConfigTreeBuilder() | |
->booleanNode('debug')->defaultFalse()->info('Debug mode')->end() | ||
->booleanNode('generateId')->defaultTrue()->info('Automatically add an id field to entities')->end() | ||
->booleanNode('useInterface')->defaultFalse()->info('Generate interfaces and use Doctrine\'s Resolve Target Entity feature')->end() | ||
->booleanNode('useType')->defaultFalse()->info('Use PSR-5\'s @type annotation instead of @var in the PHPDoc')->end() | ||
->booleanNode('useDoctrineCollection')->defaultTrue()->info('Use Doctrine\'s ArrayCollection instead of standard arrays')->end() | ||
->booleanNode('checkIsGoodRelations')->defaultFalse()->info('Emit a warning if a property is not derived from GoodRelations')->end() | ||
->scalarNode('header')->defaultFalse()->info('A license or any text to use as header of generated files')->example('// (c) Kévin Dunglas <[email protected]>')->end() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,33 +17,34 @@ namespaces: | |
interface: "Dunglas\EcommerceBundle\Model" | ||
author: "Kévin Dunglas <[email protected]>" | ||
debug: true | ||
useType: true | ||
useInterface: true | ||
checkIsGoodRelations: true | ||
types: | ||
Thing: | ||
properties: | ||
name: ~ | ||
description: ~ | ||
# image: ~ | ||
image: ~ | ||
additionalType: ~ | ||
Product: | ||
properties: | ||
sku: | ||
cardinality: "(0..1)" | ||
url: ~ | ||
brand: ~ | ||
color: ~ | ||
depth: ~ | ||
productId: ~ | ||
releaseDate: ~ | ||
offers: ~ | ||
itemCondition: ~ | ||
gtin13: ~ | ||
gtin14: ~ | ||
gtin8: ~ | ||
height: ~ | ||
itemCondition: ~ | ||
mpn: ~ | ||
offers: ~ | ||
productId: ~ | ||
releaseDate: ~ | ||
sku: | ||
cardinality: "(0..1)" | ||
weight: ~ | ||
width: ~ | ||
color: ~ | ||
depth: { range: "Text" } | ||
height: { range: "Text" } | ||
weight: { range: "Text" } | ||
width: { range: "Text" } | ||
Brand: | ||
parent: "Thing" | ||
properties: | ||
|
@@ -52,18 +53,13 @@ types: | |
parent: Thing | ||
properties: | ||
caption: ~ | ||
QuantitativeValue: | ||
properties: | ||
unitCode: ~ | ||
value: ~ | ||
ProductModel: | ||
properties: | ||
isVariantOf: ~ | ||
Offer: | ||
parent: Thing | ||
properties: | ||
acceptedPaymentMethod: ~ | ||
# addOn: ~ | ||
availability: ~ | ||
availabilityStarts: ~ | ||
availabilityEnds: ~ | ||
|
@@ -72,22 +68,13 @@ types: | |
deliveryLeadTime: ~ | ||
inventoryLevel: ~ | ||
itemCondition: ~ | ||
priceSpecification: ~ | ||
PriceSpecification: | ||
parent: false | ||
properties: | ||
eligibleQuantity: ~ | ||
eligibleTransactionVolume: ~ | ||
price: ~ | ||
priceCurrency: ~ | ||
validFrom: ~ | ||
validThrough: ~ | ||
valueAddedTaxIncluded: ~ | ||
DeliveryChargeSpecification: ~ | ||
PaymentChargeSpecification: ~ | ||
OfferItemCondition: ~ | ||
PaymentMethod: ~ | ||
ItemAvailability: ~ | ||
DeliveryMethod: ~ | ||
# WarrantyPromise: ~ | ||
# WarrantyScope: | ||
# parent: false |