@param Column   $column
@param int|null $size

@return Index
963407
final public function addColumn(Column $column, int $size = null): Index
    {
        if ($this->hasColumn($column::getName())) {
            throw new InvalidArgumentException('Column '.$column::getName().' already added to the index');
        }

        $this->columns[] = new IndexColumn($column, $size);

        return $this;
    }
792565
public static function parseSize($size)
    {
        $height = null;
        $width = null;

        if (count((array) $size) == 2 || strpos($size, 'x')) {
            list($width, $height) = is_array($size) ? $size : explode('x', $size);
        } else {
            $size = (array) $size;
            $width = (int) $size[0];
        }

        return array($width,$height);
    }
301651
public static function getSize( $size )
    {
        $dim = [];
        if( is_array( $size ) )
        {
            $dim[ 'w' ] = $size[0];
            $dim[ 'h' ] = isset( $size[1] ) ? $size[1] : $size[0];
        }
        else
        {
            $dim[ 'w' ] = $size;
            $dim[ 'h' ] = null;
        }

        return $dim;
    }
1365576
public static function size ($size, $unit = '')
		{
			if (is_numeric($size) and $size >= 0)
			{
				if (( !$unit && $size >= 1 << 30 ) || $unit == 'GB')
					return round($size / ( 1 << 30 )) . ' GB';
				if (( !$unit && $size >= 1 << 20 ) || $unit == 'MB')
					return round($size / ( 1 << 20 )) . ' MB';
				if (( !$unit && $size >= 1 << 10 ) || $unit == 'KB')
					return round($size / ( 1 << 10 )) . ' KB';

				return round($size) . ' B';
			}

			return null;
		}
591876
public function displayBlock($size = null)
    {
        if (empty($size)) {
            $this->attributes->addAttributeClass('d-block');
        } elseif (in_array($size, ['xs', 'sm', 'md', 'lg', 'xl'])) {
            $this->attributes->addAttributeClass('d-' . $size . '-block');
        }

        return $this;
    }
1075506
public function displayTable($size = null)
    {
        if (empty($size)) {
            $this->attributes->addAttributeClass('d-table');
        } elseif (in_array($size, ['xs', 'sm', 'md', 'lg', 'xl'])) {
            $this->attributes->addAttributeClass('d-' . $size . '-table');
        }

        return $this;
    }
234523
public function resize($size, $char = "\0")
  {
    $chars = ($size - $this->count());

    if($chars < 0)
    {
      $this->string = substr($this->string, 0, $chars);
    }
    elseif($chars > 0)
    {
      $this->string = str_pad($this->string, $size, strval($char));
    }

    return $this;
  }
400413
public function generateImageUrl($file, $size=null)
	{
		$url = $this->config->get('prefix').'/'.$file;

		if (!is_null($size)) {
			$url .= '?size='.$size;
		}

		return URL::to($url);
	}
452362
public function xl(int $size): Bootstrap4Column
    {
        if ($this->validateColumnSize($size) === true) {
            $this->xl_size = $size;
        }

        return $this;
    }
1122773
public function relativePosition(Size $size)
    {
        $x = $this->pivot->x - $size->pivot->x;
        $y = $this->pivot->y - $size->pivot->y;

        return new Point($x, $y);
    }
89343
public function thumbnail($size = null)
    {
        $size = ($size) ? $size : $this->config->get('images.size');

        if ($id = $this->thumbnailId) {
            return new Image($id, $size);
        }
    }
501431
public function setSize($size)
    {
        if (!empty($size)) {
            $this->size = $size;
            $this->pxRatio = round($size / 5);

            return $this;
        }
    }
635142
public function setPagination($offset, $size)
    {
        if (is_int($offset)) {
            $this->query->setFrom($offset);
        }

        if (is_int($size)) {
            $this->query->setSize($size);
        }

        return $this;
    }
32183
public function size( $size ) {
		$this->width  = (int) $size;
		$this->height = (int) $size;

		return $this;
	}
449180
public function setSize($size)
    {
        $this->cachedParams = null;

        $this->checkSize($size);

        $this->size = $size;

        return $this;
    }
648974
public function findIndex(array $columns): ?AbstractIndex
    {
        foreach ($this->indexes as $index) {
            if ($index->getColumns() == $columns) {
                return $index;
            }
        }

        return null;
    }
1102736
public function smallInt($column, $length = null)
    {
        return $this->addColumn($column, self::TYPE_SMALL_INT, array('length' => $length));
    }