public function setResizeFocus(string $resizeFocus = \null)
    {
        $validValues = [
            'face',
            'faces',
            'top',
            'bottom',
            'right',
            'left',
            'top_right',
            'top_left',
            'bottom_right',
            'bottom_left',
        ];

        if (\null !== $resizeFocus && !\in_array($resizeFocus, $validValues, \true)) {
            throw new \InvalidArgumentException(\sprintf(
                'Unknown resize focus "%s" given. Expected "%s" or null.',
                $resizeFocus,
                \implode(', ', $validValues)
            ));
        }

        $this->resizeFocus = $resizeFocus;

        return $this;
    }