public function addExport(ExportInterface $export)
    {
        if ($export->getRole() === null || $this->securityContext->isGranted($export->getRole())) {
            $this->exports[] = $export;
        }

        return $this;
    }
public function addExport(ExportInterface $export)
    {
        if ($export->getRole() === null || $this->securityContext->isGranted($export->getRole())) {
            $this->exports[] = $export;
        }

        return $this;
    }
public function addExport ( ExportInterface $ export ) { if ( $ export -> getRole ( ) === null || $ this -> securityContext -> isGranted ( $ export -> getRole ( ) ) ) { $ this -> exports [ ] = $ export ; } return $ this ; }
Adds Export.

@param ExportInterface $export

@return self
Adds Export .