You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some methods such us add \ update I send arrays like this:
$b24Service->getCRMScope()->deal()->update(
$deailId,
[
'START_DATE' => (newDateTime())->format(DateTime::ATOM), // i can't pass DateTime objects'IS_PRIVATE' => 'Y', // i can't pass boolean variables'PRICE' => '245.59'// i can't pass phpmoney/money objects
]
);
Question 2: if i already have information about types and properties in DealCategoryItemResult annotation can I use this info to typecast array values like us in this example automatically?
AS IS
I work with REST-API via SDK-client, and they return results as an immutable object
for each result object type I wrote php-doc annotations
in class
AbstractCrmItem
I write large swich-case with typcast for fields like us@property DateTimeImmutable $CREATED_DATE
Question 1: Can I use typhoon for read annotations and write more smart and automatic typecast code?
In some methods such us add \ update I send arrays like this:
Question 2: if i already have information about types and properties in
DealCategoryItemResult
annotation can I use this info to typecast array values like us in this example automatically?The text was updated successfully, but these errors were encountered: