mageekguy\atoum\fs\path::setDriveAndComponents PHP Method

setDriveAndComponents() protected method

protected setDriveAndComponents ( $value )
    protected function setDriveAndComponents($value)
    {
        $drive = null;
        if (preg_match('#^[a-z]:#i', $value, $matches) == true) {
            $drive = $matches[0];
            $value = substr($value, 2);
        }
        $this->drive = $drive;
        $this->components = self::getComponents($value);
        return $this;
    }