public function getAttributes()
    {
        $interfaces = $this->interfaces();

        $attributes = array_merge(
            $this->attributes(),
            [
                'fields' => function () {
                    return $this->getFields();
                },
            ]
        );

        if (!empty($interfaces)) {
            $attributes['interfaces'] = $interfaces;
        }

        return $attributes;
    }
public function getAttributes()
    {
        $interfaces = $this->interfaces();

        $attributes = array_merge(
            $this->attributes(),
            [
                'fields' => function () {
                    return $this->getFields();
                },
            ]
        );

        if (!empty($interfaces)) {
            $attributes['interfaces'] = $interfaces;
        }

        return $attributes;
    }
public function getAttributes ( ) { $ interfaces = $ this -> interfaces ( ) ; $ attributes = array_merge ( $ this -> attributes ( ) , [ 'fields' => function ( ) { return $ this -> getFields ( ) ; } , ] ) ; if ( ! empty ( $ interfaces ) ) { $ attributes [ 'interfaces' ] = $ interfaces ; } return $ attributes ; }
Gets the list of all computed attributes for this type.

@return array
Gets the list of all computed attributes for this type .