toArray() public method

Get value that will be used to represent this attribute when converting AbstractEntity to array
public toArray ( array $params = [] ) : string
$params array
return string
示例#1
0
 /**
  * Get value that will be used to represent this attribute when converting AbstractEntity to array
  *
  * @param array $params
  *
  * @return string
  */
 public function toArray($params = [])
 {
     return (double) parent::toArray($params);
 }
示例#2
0
 public function toArray($params = [])
 {
     return $this->processToArrayValue(StdObjectWrapper::toBool(parent::toArray($params)));
 }