Money ​
- Type
- Class
- Namespace
- craft\gql\directives
- Inherits
- craft\gql\directives\Money » craft\gql\base\Directive »
GraphQL\Type\Definition\Directive
- Since
- 4.0.0
Class Money
Public Methods ​
Method | Description |
---|---|
apply() | Apply the directive to the value with arguments |
create() | Return an instance of the directive |
defaultTimeZone() | Returns the default time zone to be used. |
name() | Return the directive's name |
apply()
​
Apply the directive to the value with arguments
Arguments ​
$source
(mixed
) – The original source from which the value was resolved$value
(mixed
) – The value that was resolved$arguments
(array) – For the directive$resolveInfo
(\GraphQL\Type\Definition\ResolveInfo
) – Resolve info object
Returns ​
mixed
create()
​
Return an instance of the directive
Returns ​
\GraphQL\Type\Definition\Directive
– $directive
defaultTimeZone()
​
Returns the default time zone to be used.
Returns ​
name()
​
Return the directive's name
Returns ​
string – $name
Constants ​
Constant | Description |
---|---|
FORMATS | |
FORMAT_AMOUNT | |
FORMAT_DECIMAL | |
FORMAT_NUMBER | |
FORMAT_STRING |