Skip to content

Reference

phil/listings
TypeKindRole
Phil\Listings\ListingIdfinal readonly classThe identifier of a listing: of(), equals(), MAX_LENGTH
Phil\Listings\MemberIdfinal readonly classThe identifier of a member: of(), equals(), MAX_LENGTH
Phil\Listings\ResponseIdfinal readonly classThe identifier of a response: of(), equals(), MAX_LENGTH
Phil\Listings\ListingKindfinal readonly classA kind of listing: of(), equals(), MAX_LENGTH
Phil\Listings\ModerationReasonfinal readonly classWhy a listing was rejected or removed: of(), equals(), MAX_LENGTH
Phil\Listings\Titlefinal readonly classA folded, bounded title: of(), MAX_LENGTH, MAX_INPUT_BYTES
Phil\Listings\Locationfinal readonly classOnline or an area with an exact place: online(), area(), isOnline(), approximate()
Phil\Listings\CriterionTypeenumchoice, range, flag
Phil\Listings\Criterionfinal readonly classOne criterion: choice(), range(), flag(), meets()
Phil\Listings\Criteriafinal readonly classThe criteria by name: of(), meets(), get(), all(), MAX_COUNT
Phil\Listings\Moderationenumbefore_publication, after_publication
Phil\Listings\KindPolicyfinal readonly classThe bounded rules of a kind: of(), expiryFrom(), extendedFrom(), reminderFrom()
Phil\Listings\KindPoliciesfinal readonly classThe policies by kind: get(), has(), kinds()
Phil\Listings\ListingStatusenumdraft, pending_review, published, rejected, hidden, expired, closed, removed
Phil\Listings\Listingfinal readonly classA listing and its pure transitions: draft(), restore(), submit(), approve(), reject(), remove(), report(), edit(), extend(), close(), at(), markReminded(), isVisibleAt(), needsReminderAt(), admitsAge(), locationFor()
Phil\Listings\ResponseStatusenumpending, accepted, declined, withdrawn
Phil\Listings\Responsefinal readonly classA response and its pure transitions: pending(), restore(), accept(), decline(), withdraw(), isOpen(), permitsContact()
Phil\Listings\RefusalenumWhy a response is refused: not_open, responses_closed, own_listing, blocked, age_unknown, too_young, already_responded, full, other_listing
Phil\Listings\Responderfinal readonly classThe rules across a listing and its responses: refusal(), respond(), accept(), decline(), withdraw()
Phil\Listings\Contract\BlockListinterfaceWhether one of two members blocked the other: isBlocked()
Phil\Listings\Contract\MemberAgesinterfaceA member's age at an instant: ageOf()
Phil\Listings\Contract\ResponseStoreinterfaceWhere the responses live: countOpen(), hasOpen(), save()
Phil\Listings\Exception\ListingsExceptioninterfaceEvery exception of the library
Phil\Listings\Exception\InvalidListingfinal classA value the library cannot work with
Phil\Listings\Exception\ForbiddenTransitionfinal classA change the status does not allow
Phil\Listings\Exception\UnknownKindfinal classA kind no policy is declared for
Phil\Listings\Exception\ResponseRefusedfinal classA response or an acceptance refused, with its refusal