Example #1
0
 /**
  * @param bool $includeNull = false
  * @return array
  */
 public function toArray($includeNull = false)
 {
     $array = parent::toArray($includeNull);
     if ($this->credentials) {
         $array['token'] = $this->credentials->getToken();
     }
     return $array;
 }