public function find($id)
    {
        if (! is_numeric($id) && is_string($id)) {
            return $this->findBySlug($id);
        }

        return $this->plugger
            ->setModel($this)
            ->setAdapter(Post::class)
            ->plugIn(get_post($id))
            ->getConnected()
            ->first();
    }
public function find($id)
    {
        if (! is_numeric($id) && is_string($id)) {
            return $this->findBySlug($id);
        }

        return $this->plugger
            ->setModel($this)
            ->setAdapter(Post::class)
            ->plugIn(get_post($id))
            ->getConnected()
            ->first();
    }
public function find ( $ id ) { if ( ! is_numeric ( $ id ) && is_string ( $ id ) ) { return $ this -> findBySlug ( $ id ) ; } return $ this -> plugger -> setModel ( $ this ) -> setAdapter ( Post :: class ) -> plugIn ( get_post ( $ id ) ) -> getConnected ( ) -> first ( ) ; }
Find post by id.

@param int $id

@return \Assely\Adapter\Post
Find post by id .