Hello

As i read in https://wiki.php.net/rfc/howto write here “concept”.

For fill dto and other same objects need assign to many fields of on object, before properties was be use return $this  in setters and code loos like this

$item
    ->setType(Item::TYPE_CLOUT)
    ->setProduct($product)
    ->setPrice($price)

and it was single operator, but it not work with simple property or get-set function need write

$item->type = Item::TYPE_CLOUT;
$item->product = $product;
$item->price = $price;

suggest add operator like with in c# which do action and back context back and use for example :>
same assign will be look like this

$item
    :>type = Item::TYPE_CLOUT
    :>product = $product
    :>price = $price
;

Reply via email to