src/Entity/XiboDaypart.php
public function edit($name, $description, $startTime, $endTime, $exceptionDays = [], $exceptionStartTimes = [], $exceptionEndTimes = [])
    {
        $this->userId = $this->getEntityProvider()->getMe()->getId();
        $this->name = $name;
        $this->description = $description;
        $this->startTime = $startTime;
        $this->endTime = $endTime;
        $this->exceptionDays = $exceptionDays;
        $this->exceptionStartTimes = $exceptionStartTimes;
        $this->exceptionEndTimes = $exceptionEndTimes;
        
        $this->getLogger()->info('Editing dayPart ID ' . $this->dayPartId);
        $response = $this->doPut('/daypart/' . $this->dayPartId, $this->toArray());

        return $this->hydrate($response);
    }
public function edit($name, $description, $startTime, $endTime, $exceptionDays = [], $exceptionStartTimes = [], $exceptionEndTimes = [])
    {
        $this->userId = $this->getEntityProvider()->getMe()->getId();
        $this->name = $name;
        $this->description = $description;
        $this->startTime = $startTime;
        $this->endTime = $endTime;
        $this->exceptionDays = $exceptionDays;
        $this->exceptionStartTimes = $exceptionStartTimes;
        $this->exceptionEndTimes = $exceptionEndTimes;
        
        $this->getLogger()->info('Editing dayPart ID ' . $this->dayPartId);
        $response = $this->doPut('/daypart/' . $this->dayPartId, $this->toArray());

        return $this->hydrate($response);
    }
public function edit ( $ name , $ description , $ startTime , $ endTime , $ exceptionDays = [ ] , $ exceptionStartTimes = [ ] , $ exceptionEndTimes = [ ] ) { $ this -> userId = $ this -> getEntityProvider ( ) -> getMe ( ) -> getId ( ) ; $ this -> name = $ name ; $ this -> description = $ description ; $ this -> startTime = $ startTime ; $ this -> endTime = $ endTime ; $ this -> exceptionDays = $ exceptionDays ; $ this -> exceptionStartTimes = $ exceptionStartTimes ; $ this -> exceptionEndTimes = $ exceptionEndTimes ; $ this -> getLogger ( ) -> info ( 'Editing dayPart ID ' . $ this -> dayPartId ) ; $ response = $ this -> doPut ( '/daypart/' . $ this -> dayPartId , $ this -> toArray ( ) ) ; return $ this -> hydrate ( $ response ) ; }
Edit Daypart.

@param string $name The name for the daypart
@param string $description The description for the daypart
@param string $startTime The start time for this daypart
@param string $endTime The end time for this daypart
@param array[string] $exceptionDays String array of exception days
@param array[string] $exceptionStartTimes String array of start times to match the exception days
@param array[string] $exceptionEndTimes String array of end times to match the exception days
@return XiboDaypart
Edit Daypart .