Almost right. PHP: pocketmine\level\Level::setBlock ( Vector3 $pos, Block $block, $direct = false, $update = true )
What's so hard about reading the source code, or even the docs? It will help u a lot faster for these simple things instead of waiting for replies here, js.
Actually, if you understand object-oriented programming of any language to a certain degree, you automatically understand them.