src/Operations.php
public function vote(string $voter, string $author, string $permalink, int $weight)
    {
        $request = [
            'operations' =>
                [
                    [
                        'vote',
                        [
                            'voter'    => $voter,
                            'author'   => $author,
                            'permlink' => $permalink,
                            'weight'   => (int) $weight,
                        ]
                    ]
                ]
        ];

        return $request;
    }
public function vote(string $voter, string $author, string $permalink, int $weight)
    {
        $request = [
            'operations' =>
                [
                    [
                        'vote',
                        [
                            'voter'    => $voter,
                            'author'   => $author,
                            'permlink' => $permalink,
                            'weight'   => (int) $weight,
                        ]
                    ]
                ]
        ];

        return $request;
    }
Vote

@param string $voter     Voting user
@param string $author    Up-voted user
@param string $permalink Permalink of the post
@param int    $weight    Voting weight
@return array