public function setType( $type )
    {
        if (!in_array( $type, self::$customerTypes )) {
            throw new InvalidArgumentException( sprintf( 'Invalid type (%s)', $type ) );
        }

        $this->type = $type;

        return $this;
    }
public function setType( $type )
    {
        if (!in_array( $type, self::$customerTypes )) {
            throw new InvalidArgumentException( sprintf( 'Invalid type (%s)', $type ) );
        }

        $this->type = $type;

        return $this;
    }
@param  int $type

@return $this
@throws \InvalidArgumentException