« first day (2853 days earlier)      last day (1264 days later) » 

2:39 PM
2 messages moved from SOBotics
 
3:19 PM
$request->createRequest->Lines = new \stdClass();
foreach ($variations as $key => $variation) {
$newLine = new \stdClass();
$newLine->Create_Line = new \stdClass();
$newLine->Create_Line->ItemIdentifier = new \stdClass();
$newLine->Create_Line->ItemIdentifier->Reference = $variation_details->codeBarre ;
$newLine->Create_Line->Label = $article_details->libelle ;
$newLine->Create_Line->NetUnitPrice = $prix_variation ;
$newLine->Create_Line->Origin = 'ECommerce' ;
$newLine->Create_Line->Quantity = $amounts[$key] ;
 
1 message moved from PHP
 
 
1 hour later…
Wes
5:36 PM
for example,

public function selectText(int $min, int $max){
    if($min > $max){
        throw new Exception...; // this should be a type on its own, although a very tiny type
    }

    // ...
}

class SelectionSpec{
    public function __construct(int $min, int $max){
        if($min > $max){
            throw new Exception...; // this should be a type on its own, although a very tiny type
        }
        $this->min = $min;
        $this->max = $max;
    }

    public final int $min;
    public final int $max;
1 message moved from PHP
 

« first day (2853 days earlier)      last day (1264 days later) »