Adds a word element.

@param string $role
@param string $text

@return ContainerElement
196710
public function w(string $role, string $text): ContainerElement
    {
        return $this->word($role, $text);
    }
1314793
public static function add(string $text, string $tag): string
    {
        return self::wrap($text, $tag);
    }
1281147
public function addRole($role)
    {
        $role = strtoupper($role);
        if (static::ROLE_DEFAULT === $role) {
            return $this;
        }

        if (!$this->hasRole($role)) {
            $this->roles[] = $role;
        }

        return $this;
    }
769322
protected void addGroupToRole(String group, String role) {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
            SibTr.entry(tc, CLASS_NAME + "addGroupToRole", new Object[] { group, role });
        }
        Set<String> groupsForTheRole = roleToGroupMap.get(role);
        if (groupsForTheRole != null) {
            groupsForTheRole.add(group);
        } else {
            groupsForTheRole = new HashSet<String>();
            groupsForTheRole.add(group);
        }
        roleToGroupMap.put(role, groupsForTheRole);
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
            SibTr.exit(tc, CLASS_NAME + "addGroupToRole");
        }
    }
1042402
public function create(Role $role)
    {
        $this->authorize(UsersPolicy::PERMISSION_CREATE);

        $roles = $role->all();

        $this->setTitle($title = trans('auth::users.titles.create-user'));
        $this->addBreadcrumb($title);

        return $this->view('admin.users.create', compact('roles'));
    }
248464
private function setRoleLanguage($role, $locale, $text)
    {
        if (is_numeric($role)) {
            $role = $this->find($role);
        }

        if (!$role) {
            return;
        }

        $roleName = $role->snake_case_name;
        $languageFilePath = resource_path('lang/' . $locale . '/role.php');
        if (!file_exists($languageFilePath)) {
            throw new FileNotFoundException("resources/lang/{$locale}/role.php doesn't exist.");
        }
        $languageContent = file_get_contents($languageFilePath);

        $text = addslashes($text);
        $regexp = "/('roles'.*=>[\w\W]*)('{$roleName}'\s*=>\s*')(.+)'/";
        $replaceExp = "$1$2{$text}'";

        $languageContent = preg_replace($regexp, $replaceExp, $languageContent);

        file_put_contents($languageFilePath, $languageContent);
    }
29291
public function addAllowedRole($role, $attribute = 'access')
    {
        $roleStr = (string) $role;
        if (!isset($this->allowedRoles[$roleStr])) {
            $this->allowedRoles[$roleStr] = array();
        }
        $this->allowedRoles[$roleStr][(string) $attribute] = true;
        return $this;
    }
1206273
public function add($role)
    {
        $this->bucket[$role] = sprintf("%05d", $this->acl->getRoleLevel($role)) .'-'. $role;
        return $this;
    }
132487
public function paragraph(string $text = null): Paragraph
    {
        $paragraph = Paragraph::factory();
        if ($text !== null) {
            $paragraph->text($text);
        }

        /** @var ContainerElement $this */
        return $this->addElement($paragraph);
    }
289847
public function addListItem($text, $depth = 0, $styleFont = null, $styleList = null, $styleParagraph = null) {
		$listItem = new PHPWord_Section_ListItem($text, $depth, $styleFont, $styleList, $styleParagraph);
		$this->_elementCollection[] = $listItem;
		return $listItem;
	}
1210338
public function addElement($title, $description, $image = '')
    {
        $element = new Element($title, $description, $image);
        $this->add($element);

        return $element;
    }
616269
public function addText($text) {
		$content = new HtmlString();
		$content->htmlString = $text;
		$this->children[] = $content;
		return $this;
	}
500990
public function createRole(Role $role)
    {
        $url = self::makeUrl($role->tenantId, $role->name);
        $this->service->prepAndSend($url, array(201, 200), 'PUT', json_encode($role), false, 'application/json', 'application/json');
    }
83602
public function addRole(string $role): UserInterface
    {
        $role = mb_strtoupper($role);

        if (!\in_array($role, $this->roles, true)) {
            $this->roles[] = $role;
        }

        return $this;
    }
147317
public function addRole(Role $role)
    {
        if (!in_array($role, $this->roles)) {
            $this->roles[] = $role;
            return true;
        }
        return false;
    }
121427
public function setRoles(\WobbleCode\UserBundle\Document\Role $roles)
    {
        $this->roles = $roles;

        return $this;
    }
980908
public function addRolesGroupe(\Thibautg16\UtilisateurBundle\Entity\Role $rolesGroupe)
    {
        $this->roles_groupe[] = $rolesGroupe;

        return $this;
    }