for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Post.
*
* @package App
*/
declare(strict_types=1);
namespace App\Services\Meta;
* Post class.
class Post implements PostInterface {
* {@inheritDoc}
* @param integer $id Id.
* @param string $key Key.
* @param boolean $single Single.
* @return mixed
public function get( int $id, string $key, bool $single = false ) {
return get_post_meta( $id, $key, $single );
}
* @param mixed $value Value.
* @return IMeta
public function set( int $id, string $key, $value ) : IMeta {
update_post_meta( $id, $key, $value );
return $this;