getIndexed() public method

Get indexing date
public getIndexed ( ) : DateTime
return DateTime
Example #1
0
 /**
  * Test if article is indexed
  *
  * @param Newscoop\Entity\Article $article
  * @return bool
  */
 public function isIndexed(DocumentInterface $article)
 {
     return $article->getIndexed() !== null;
 }
Example #2
0
 /**
  * Test if comment is indexed
  *
  * @param Newscoop\Entity\Comment $comment
  * @return bool
  */
 public function isIndexed(DocumentInterface $comment)
 {
     return $comment->getIndexed() !== null;
 }
Example #3
0
 /**
  * Test if user is indexed
  *
  * @param Newscoop\Entity\User $user
  * @return bool
  */
 public function isIndexed(DocumentInterface $user)
 {
     return $user->getIndexed() !== null;
 }