Get arg or args

@param null $pos
@return array
340954
public function getArg($pos = null)
    {
        if ($pos === null) {
            return $this->args;
        }

        return isset($this->args[$pos]) ? $this->args[$pos] : $this->args;
    }
598072
protected function parseLongForm($pos)
	{
		$pos = $this->text->indexOf($this->syntaxChar . '(', $pos);
		if ($pos === false)
		{
			return;
		}

		preg_match_all($this->longRegexp, $this->text, $matches, PREG_OFFSET_CAPTURE, $pos);
		foreach ($matches[0] as list($match, $matchPos))
		{
			$matchLen = strlen($match);

			$this->parser->addTagPair($this->tagName, $matchPos, 2, $matchPos + $matchLen - 1, 1);
			$this->text->overwrite($matchPos, $matchLen);
		}
		if (!empty($matches[0]))
		{
			$this->parseLongForm($pos);
		}
	}
54155
public function getByPosition($pos)
    {
        switch ($pos) {
            case 0:
                return $this->getId();
                break;
            case 1:
                return $this->getMapuid();
                break;
            case 2:
                return $this->getName();
                break;
            case 3:
                return $this->getFilename();
                break;
            case 4:
                return $this->getAuthor();
                break;
            case 5:
                return $this->getEnvironment();
                break;
            case 6:
                return $this->getMood();
                break;
            case 7:
                return $this->getBronzetime();
                break;
            case 8:
                return $this->getSilvertime();
                break;
            case 9:
                return $this->getGoldtime();
                break;
            case 10:
                return $this->getAuthortime();
                break;
            case 11:
                return $this->getCopperprice();
                break;
            case 12:
                return $this->getLaprace();
                break;
            case 13:
                return $this->getNblaps();
                break;
            case 14:
                return $this->getNpcheckpoints();
                break;
            case 15:
                return $this->getMaptype();
                break;
            case 16:
                return $this->getMapstyle();
                break;
            case 17:
                return $this->getCreatedAt();
                break;
            case 18:
                return $this->getUpdatedAt();
                break;
            default:
                return null;
                break;
        } // switch()
    }
234612
public function getByPosition($pos)
    {
        switch ($pos) {
            case 0:
                return $this->getId();
                break;
            case 1:
                return $this->getLocale();
                break;
            case 2:
                return $this->getLabel();
                break;
            default:
                return null;
                break;
        } // switch()
    }
270760
public function getByPosition($pos)
    {
        switch ($pos) {
            case 0:
                return $this->getId();
                break;
            case 1:
                return $this->getCreatedAt();
                break;
            case 2:
                return $this->getUpdatedAt();
                break;
            default:
                return null;
                break;
        } // switch()
    }
369740
public function getByPosition($pos)
    {
        switch ($pos) {
            case 0:
                return $this->getId();
                break;
            case 1:
                return $this->getDealerId();
                break;
            case 2:
                return $this->getDay();
                break;
            case 3:
                return $this->getBegin();
                break;
            case 4:
                return $this->getEnd();
                break;
            case 5:
                return $this->getClosed();
                break;
            case 6:
                return $this->getPeriodBegin();
                break;
            case 7:
                return $this->getPeriodEnd();
                break;
            case 8:
                return $this->getCreatedAt();
                break;
            case 9:
                return $this->getUpdatedAt();
                break;
            case 10:
                return $this->getVersion();
                break;
            case 11:
                return $this->getVersionCreatedAt();
                break;
            case 12:
                return $this->getVersionCreatedBy();
                break;
            case 13:
                return $this->getDealerIdVersion();
                break;
            default:
                return null;
                break;
        } // switch()
    }
676256
public function getByPosition($pos)
    {
        switch ($pos) {
            case 0:
                return $this->getId();
                break;
            case 1:
                return $this->getLogin();
                break;
            case 2:
                return $this->getMapuid();
                break;
            case 3:
                return $this->getScore();
                break;
            case 4:
                return $this->getCreatedAt();
                break;
            case 5:
                return $this->getUpdatedAt();
                break;
            default:
                return null;
                break;
        } // switch()
    }
591720
public function getByPosition($pos)
    {
        switch ($pos) {
            case 0:
                return $this->getId();
                break;
            case 1:
                return $this->getLocale();
                break;
            case 2:
                return $this->getDescription();
                break;
            default:
                return null;
                break;
        } // switch()
    }
1110871
public function getValueForPosition($pos) {
        return (isset($this->cells[$pos])) ? $this->cells[$pos]->getValue(): null;
    }
680153
static function supprimer_argument_balise($pos, $p) {
		if (!isset($p->param[0])) {
			return null;
		}
		if (!isset($p->param[0][$pos])) {
			return null;
		}
		if ($pos == 0) {
			array_shift($p->param[0]);
		} else {
			$debut = array_slice($p->param[0], 0, $pos);
			$fin   = array_slice($p->param[0], $pos+1);
			$p->param[0] = array_merge($debut, $fin);
		}
		return $p;
	}
900004
protected function _parse($arg)
    {
        $pos = strpos($arg, '=');
        if ($pos !== false) {
            $name = substr($arg, 0, $pos);
            $value = substr($arg, $pos + 1);
        } else {
            $name = $arg;
            $value = true;
        }
        return [$name, $value];
    }
220006
public function getByPosition($pos)
    {
        switch ($pos) {
            case 0:
                return $this->getId();
                break;
            case 1:
                return $this->getTitle();
                break;
            case 2:
                return $this->getDescription();
                break;
            case 3:
                return $this->getUrl();
                break;
            case 4:
                return $this->getThumbUrl();
                break;
            case 5:
                return $this->getSkillId();
                break;
            case 6:
                return $this->getPhotographer();
                break;
            case 7:
                return $this->getPhotographerId();
                break;
            case 8:
                return $this->getAthlete();
                break;
            case 9:
                return $this->getAthleteId();
                break;
            case 10:
                return $this->getUploaderId();
                break;
            default:
                return null;
                break;
        } // switch()
    }
263270
public function getByPosition($pos)
    {
        switch ($pos) {
            case 0:
                return $this->getId();
                break;
            case 1:
                return $this->getType();
                break;
            case 2:
                return $this->getDateTime();
                break;
            case 3:
                return $this->getUserId();
                break;
            case 4:
                return $this->getUsername();
                break;
            case 5:
                return $this->getSessionId();
                break;
            case 6:
                return $this->getClientAddress();
                break;
            case 7:
                return $this->getClientIp();
                break;
            case 8:
                return $this->getClientAgent();
                break;
            case 9:
                return $this->getClientPlatform();
                break;
            default:
                return null;
                break;
        } // switch()
    }
1029625
private static function getArgs(array $args = null, \ReflectionMethod $method = null)
    {
        $config = [];
        if ($args && !empty($args)) {
            foreach ($args as $arg) {
                $config[$arg->name] = ['type' => $arg->type] + ($arg->description ? ['description' => $arg->description] : []);
            }
        } elseif ($method) {
            $config = self::guessArgs($method);
        }

        return $config;
    }
1271359
public function getByPosition($pos)
    {
        switch ($pos) {
            case 0:
                return $this->getId();
                break;
            case 1:
                return $this->getCreatedAt();
                break;
            case 2:
                return $this->getUpdatedAt();
                break;
            case 3:
                return $this->getVersion();
                break;
            case 4:
                return $this->getVersionCreatedAt();
                break;
            case 5:
                return $this->getVersionCreatedBy();
                break;
            case 6:
                return $this->getPersonTeamLinkIds();
                break;
            case 7:
                return $this->getPersonTeamLinkVersions();
                break;
            default:
                return null;
                break;
        } // switch()
    }
1259942
public function getByPosition($pos)
    {
        switch ($pos) {
            case 0:
                return $this->getId();
                break;
            case 1:
                return $this->getPersonId();
                break;
            case 2:
                return $this->getFunctionId();
                break;
            case 3:
                return $this->getCreatedAt();
                break;
            case 4:
                return $this->getUpdatedAt();
                break;
            default:
                return null;
                break;
        } // switch()
    }
696709
public function getByPosition($pos)
    {
        switch ($pos) {
            case 0:
                return $this->getId();
                break;
            case 1:
                return $this->getVisible();
                break;
            case 2:
                return $this->getCode();
                break;
            case 3:
                return $this->getTitle();
                break;
            case 4:
                return $this->getType();
                break;
            case 5:
                return $this->getEntity();
                break;
            case 6:
                return $this->getSerializedColumns();
                break;
            case 7:
                return $this->getSerializedCondition();
                break;
            case 8:
                return $this->getIndexEngineDriverConfigurationId();
                break;
            case 9:
                return $this->getCreatedAt();
                break;
            case 10:
                return $this->getUpdatedAt();
                break;
            case 11:
                return $this->getVersion();
                break;
            case 12:
                return $this->getVersionCreatedAt();
                break;
            case 13:
                return $this->getVersionCreatedBy();
                break;
            default:
                return;
                break;
        } // switch()
    }