@param string|null $part

@return $this
546057
public function setPostcodeInward($part)
    {
        $part = strtoupper(trim($part));

        if (preg_match('/^'.self::RxInward.'$/', $part)) {
            $this->postcodeInward = $part;
        } else {
            $this->postcodeInward = null;
        }

        return $this;
    }
745749
public function resetQueryPart($queryPartName)
    {
        $this->sqlParts[$queryPartName] = is_array($this->sqlParts[$queryPartName])
            ? [] : null;

        $this->state = self::STATE_DIRTY;

        return $this;
    }
771180
public static function join_paths($part = null)
    {
        $args = func_get_args();
        if (count($args) === 1 && is_array($args[0])) {
            $args = $args[0];
        }

        $parts = array();
        foreach ($args as $arg) {
            $part = trim($arg, ' \\/');
            if ($part) {
                $parts[] = $part;
            }
        }

        return implode('/', $parts);
    }
1188947
protected function getPartHeaderFromText(&$part)
    {
        $start = $part['starting-pos'];
        $end = $part['starting-pos-body'];
        $header = substr($this->data, $start, $end - $start);
        return $header;
    }
423864
protected function getPartBodyFromFile(&$part)
    {
        $start = $part['starting-pos-body'];
        $end = $part['ending-pos-body'];
        $body = '';
        if ($end - $start > 0) {
            fseek($this->stream, $start, SEEK_SET);
            $body = fread($this->stream, $end - $start);
        }

        return $body;
    }
595069
public function set($part, $value)
    {
        if (!in_array($part, self::$parts)) {
            throw new \OutOfBoundsException("$part is not a valid url part");
        }

        $this->components[$part] = $value;
        return $this;
    }
559947
public function setPartId($v)
    {
        if ($v !== null) {
            $v = (int) $v;
        }

        if ($this->part_id !== $v) {
            $this->part_id = $v;
            $this->modifiedColumns[SkillPartTableMap::COL_PART_ID] = true;
        }

        if ($this->aSkillRelatedByPartId !== null && $this->aSkillRelatedByPartId->getId() !== $v) {
            $this->aSkillRelatedByPartId = null;
        }

        return $this;
    }
1318582
public function init($parts, $parser = LinkUtil::class)
    {

        if (is_string($parts) && filter_var($parts, FILTER_VALIDATE_URL)) {
            $parts = $parser::parse($parts);
        }

        /**@var $Property \ReflectionProperty */
        foreach((new \ReflectionObject($this))->getProperties(\ReflectionProperty::IS_PUBLIC) as $Property) {
            if ((!$Property->getValue($this)) && isset($parts[$Property->getName()])) {
                $Property->setValue($this, $parts[$Property->getName()]);
            }
        }

        return $this;
    }
490679
protected function getPartHeader(&$part)
    {
        $header = '';
        if ($this->stream) {
            $header = $this->getPartHeaderFromFile($part);
        } elseif ($this->data) {
            $header = $this->getPartHeaderFromText($part);
        }
        return $header;
    }
147873
public static function in($part, $full)
    {
        $flag = false;
        //when $full is an array
        if (is::ary($full)) {
            //check each slot of the array
            foreach ($full as $key=>$value) {
                //if $part is a regular expression
                if (is::regex($part)) {
                    if (preg_match($part, $value)) {
                        $flag = true;
                    }
                } else {
                    if (!(strstr($value, $part)===false) or $value==$part) {
                        $flag = true;
                    }
                }
            }
        } else {//if $full is not an array
            if (is::regex($part)) {
                if (preg_match($part, $full)) {
                    $flag = true;
                }
            } else {
                if (strstr($full, $part)!=false) {
                    $flag = true;
                }
            }
        }
        return $flag;
    }
564153
public function getPart($num)
    {
        --$num;
        if (!isset($this->_partPos[$num])) {
            /**
             * @see Zend_Mail_Exception
             */
            // require_once 'Zend/Mail/Exception.php';
            throw new Zend_Mail_Exception('part not found');
        }

        return new self(array('file' => $this->_fh, 'startPos' => $this->_partPos[$num][0],
                              'endPos' => $this->_partPos[$num][1]));
    }
254813
public function action($action = null)
    {
        if ($action === null) {
            return $this->clause('action');
        }

        $this->_parts['action'] = $action;

        return $this;
    }
842360
public function getPath($part=null){
        
        if(is_null($part)){
            return $this->path;
        }
        
        if(isset($this->path_array[$part])){
            return $this->path_array[$part];
        }
        
        return false;
    }
764195
public function addPathTemplatePart($part) {
		if (! in_array($part, [
			self::TPL_DOMAIN,
			self::TPL_LOCALE
		], true)) {
			throw new InvalidParameter('Unknown part of the path template definition was given');
		}
		
		$this->pathTemplate[] = $part;
		
		return $this;
	}
1097805
public function setPostcodeOutward($part)
    {
        $part = strtoupper(trim($part));

        if (preg_match('/^'.self::RxOutward.'$/', $part)) {
            $this->postcodeOutward = $part;
        } else {
            $this->postcodeOutward = null;
        }

        return $this;
    }
806111
private function failsHasContentFilter(MessagePart $part)
    {
        return ($this->hascontent === static::FILTER_EXCLUDE && $part->hasContent())
            || ($this->hascontent === static::FILTER_INCLUDE && !$part->hasContent());
    }
1076859
public function resetParts(array $partNames = array())
    {
        if (empty($partNames)) {
            $partNames = array_keys($this->parts);
        }

        foreach ($partNames as $partName) {
            $this->resetPart($partName);
        }

        return $this;
    }