Set a type of enqueue

@param $typePage

@return $this
482537
public function setActionEnqueue($typePage)
    {
        switch ($typePage) {
            case 'admin' :
                $this->actionEnqueue = "admin_enqueue_scripts";
                break;
            case 'login' :
                $this->actionEnqueue = "login_enqueue_scripts";
                break;
            default :
                $this->actionEnqueue = "wp_enqueue_scripts";
                break;
        }

        return $this;
    }
700807
public function pageType($typeOrId)
    {
        $this->pageTypeId = $typeOrId instanceof PageType ? $typeOrId->getId() : $typeOrId;
        $this->query->where('page_type', $this->pageTypeId);
        return $this;
    }
285632
public function setPagination($page, $perPage)
    {
        $this->setParam('page', $page);
        $this->setParam('per_page', $perPage);

        return $this;
    }
728057
private function type($message, $type)
    {
        $this->type = $type;

        $this->message = $message;

        return $this;
    }
1306393
public function addPage(PagingPage $page)
    {
        if (!in_array($page, $this->pages, true)) {
            array_push($this->pages, $page);
        }
        return $this;
    }
508352
public function addPage($page = null)
    {
        if ($page = parent::addPage($page)) {
            $page->setParent($this);
        }

        return $page;
    }
611998
public function set($type, $message)
    {
        $type = StaticFilter::filter('number', $type);
        if ($type < 0 || $type > 3) {
            $type = static::TYPE_INFO;
        }
        self::$messages[$type][] = $message;
        $this->getSessionDriver()
            ->set('_messages_', self::$messages)
        ;
        return $this;
    }
468763
public function setPosition(BasePage $page)
    {
        if ($page->getParent()) {
            $pageNb = count($page->getParent()->getChildren());
        } else {
            $pageNb = count($this->entityManager->getRepository('VictoirePageBundle:BasePage')->findByParent(null));
        }

        // + 1 because position start at 1, not 0
        $page->setPosition($pageNb + 1);

        return $page;
    }
1023214
public function setPagination($currentPage, $perPage = null)
    {

        $this->currentPageNumber = $this->isValidPageNumber($currentPage) ? $currentPage : 1;
        $defaultPerPage = $this->perPage ? $this->perPage : static::$perPageDefault;
        $this->perPage = $perPage ?: $defaultPerPage;
        $this->pages = null;
        return $this;
    }
62883
public function setCurrentPage($page) {
		$this->_currentPage = (int) $page;
		
		if ($this->_currentPage < 1) {
			throw new RuntimeException('Page number can\'t be zero or negative');
		}
		
		$this->reset();
		
		return $this;
	}
1020910
public function setType(Type $type = null)
    {
        if ($this->type !== $type) {
            $this->type = $type;
        }

        return $this;
    }
810841
public function setTypeMap($typeMap)
    {
        $this->_typeMap = is_array($typeMap) ? new TypeMap($typeMap) : $typeMap;

        return $this;
    }
297663
public function setType($type)
    {
        if ($type === null) {
            $type = self::TYPE_UNDEFINED;
        }

        $this->type = $type;

        return $this;
    }
1027714
public function set($type, $message)
    {
        $type = StaticFilter::filter('number', $type);
        if ($type < 0 || $type > 3) {
            $type = static::TYPE_INFO;
        }
        $this->_messages[$type][] = $message;
        $this->getSession()->set('_messages_', $this->_messages);
        return $this;
    }
1025383
public function setType($type): self
    {
        if ($type instanceof Type) {
            $this->setIndex($type->getIndex()->getName());
            $type = $type->getName();
        }

        $this->_type = (string) $type;

        return $this;
    }
368429
public function setPerPage($perpage)
    {
        if ($perpage > 0) {
            $this->perpage = (int) $perpage;
            $this->page = 1;
        }
        
        return $this;
    }
985225
public function setPage($page)
    {
        if ($page > $this->getNumberOfPages() || $page < 1) {
            throw new PageDoesNotExist("Page {$page} does not exist");
        }

        $this->page = $page;

        return $this;
    }