app/Media.php
public function getNote(): string
    {
        $fact = $this->facts(['NOTE'])->first();

        if ($fact instanceof Fact) {
            // Link to note object
            $note = $fact->target();
            if ($note instanceof Note) {
                return $note->getNote();
            }

            // Inline note
            return $fact->value();
        }

        return '';
    }
public function getNote(): string
    {
        $fact = $this->facts(['NOTE'])->first();

        if ($fact instanceof Fact) {
            // Link to note object
            $note = $fact->target();
            if ($note instanceof Note) {
                return $note->getNote();
            }

            // Inline note
            return $fact->value();
        }

        return '';
    }
public function getNote ( ) : string { $ fact = $ this -> facts ( [ 'NOTE' ] ) -> first ( ) ; if ( $ fact instanceof Fact ) { // Link to note object $ note = $ fact -> target ( ) ; if ( $ note instanceof Note ) { return $ note -> getNote ( ) ; } // Inline note return $ fact -> value ( ) ; } return '' ; }
Get the first note attached to this media object

@return string
Get the first note attached to this media object