public function toArray()
    {
        $contentAvailable = $this->contentAvailable ? true : null;
        $mutableContent = $this->isMutableContent ? true : null;
        $delayWhileIdle = $this->delayWhileIdle ? true : null;
        $dryRun = $this->isDryRun ? true : null;

        $options = [
            'collapse_key' => $this->collapseKey,
            'priority' => $this->priority,
            'content_available' => $contentAvailable,
            'mutable_content' => $mutableContent,
            'delay_while_idle' => $delayWhileIdle,
            'time_to_live' => $this->timeToLive,
            'restricted_package_name' => $this->restrictedPackageName,
            'dry_run' => $dryRun,
        ];

        return array_filter($options);
    }
public function toArray()
    {
        $contentAvailable = $this->contentAvailable ? true : null;
        $mutableContent = $this->isMutableContent ? true : null;
        $delayWhileIdle = $this->delayWhileIdle ? true : null;
        $dryRun = $this->isDryRun ? true : null;

        $options = [
            'collapse_key' => $this->collapseKey,
            'priority' => $this->priority,
            'content_available' => $contentAvailable,
            'mutable_content' => $mutableContent,
            'delay_while_idle' => $delayWhileIdle,
            'time_to_live' => $this->timeToLive,
            'restricted_package_name' => $this->restrictedPackageName,
            'dry_run' => $dryRun,
        ];

        return array_filter($options);
    }
public function toArray ( ) { $ contentAvailable = $ this -> contentAvailable ? true : null ; $ mutableContent = $ this -> isMutableContent ? true : null ; $ delayWhileIdle = $ this -> delayWhileIdle ? true : null ; $ dryRun = $ this -> isDryRun ? true : null ; $ options = [ 'collapse_key' => $ this -> collapseKey , 'priority' => $ this -> priority , 'content_available' => $ contentAvailable , 'mutable_content' => $ mutableContent , 'delay_while_idle' => $ delayWhileIdle , 'time_to_live' => $ this -> timeToLive , 'restricted_package_name' => $ this -> restrictedPackageName , 'dry_run' => $ dryRun , ] ; return array_filter ( $ options ) ; }
Transform Option to array.

@return array
Transform Option to array .