src/BoomCMS/Database/Models/Page.php
public function url()
    {
        if ($this->{self::ATTR_PRIMARY_URI} === null) {
            return;
        }

        if ($this->primaryUrl === null) {
            $this->primaryUrl = new URL([
                'page'       => $this,
                'location'   => $this->{self::ATTR_PRIMARY_URI},
                'is_primary' => true,
            ]);
        }

        return $this->primaryUrl;
    }
public function url()
    {
        if ($this->{self::ATTR_PRIMARY_URI} === null) {
            return;
        }

        if ($this->primaryUrl === null) {
            $this->primaryUrl = new URL([
                'page'       => $this,
                'location'   => $this->{self::ATTR_PRIMARY_URI},
                'is_primary' => true,
            ]);
        }

        return $this->primaryUrl;
    }
public function url ( ) { if ( $ this -> { self :: ATTR_PRIMARY_URI } === null ) { return ; } if ( $ this -> primaryUrl === null ) { $ this -> primaryUrl = new URL ( [ 'page' => $ this , 'location' => $ this -> { self :: ATTR_PRIMARY_URI } , 'is_primary' => true , ] ) ; } return $ this -> primaryUrl ; }
Returns the URL object for the page's primary URI.

The URL can be displayed by casting the returned object to a string:

(string) $page->url();

@return URLInterface|null
Returns the URL object for the page s primary URI .