protected function addAccessField(Document $document, Rootline $pageAccessRootline)
    {
        $access = (string)$pageAccessRootline;
        if (trim($access) !== '') {
            $document->setField('access', $access);
        }
    }
protected function addAccessField(Document $document, Rootline $pageAccessRootline)
    {
        $access = (string)$pageAccessRootline;
        if (trim($access) !== '') {
            $document->setField('access', $access);
        }
    }
protected function addAccessField ( Document $ document , Rootline $ pageAccessRootline ) { $ access = ( string ) $ pageAccessRootline ; if ( trim ( $ access ) !== '' ) { $ document -> setField ( 'access' , $ access ) ; } }
Adds the access field to the document if needed.

@param Document $document
@param Rootline $pageAccessRootline
Adds the access field to the document if needed .