Corcel\Attachment::toArray PHP Method

toArray() public method

Returns the basic Attachment information.
public toArray ( ) : string
return string
    public function toArray()
    {
        foreach ($this->appends as $field) {
            $result[$field] = $this[$field];
        }
        return $result;
    }