|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-06-26 08:16 UTC] kalle@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: kalle
[2015-06-26 08:16 UTC] kalle@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 09:00:02 2025 UTC |
Description: ------------ I think that it is possible in Java and C#, something like it: return new PartialConsumed($constructorArgs) [ $propertyOfPartialConsumedA => $valueA, $propertyOfPartialConsumedB => $valueB, ]; It will replace: $temp = new PartialConsumed($constructorArgs); $temp->propertyOfPartialConsumedA = $valueA; $temp->propertyOfPartialConsumedB = $valueB; return $temp;