Public Member Functions | |
add ($subreddit) | |
![]() | |
__construct () | |
getAfter () | |
getBefore () | |
_getSourceJson () | |
add ($thing) | |
count () | |
getIterator () | |
toJson () | |
fromJson (string $json) | |
![]() | |
__construct (array $args=null) | |
_getSnuzeId () | |
_getSnuzeClass () | |
_ident () | |
Additional Inherited Members | |
![]() | |
debug (string $message, bool $echo=false) | |
info (string $message, bool $echo=false) | |
warning (string $message, bool $echo=false) | |
error (string $message, bool $echo=false) | |
![]() | |
$children = [] | |
$_sourceJson = '' | |
![]() | |
$_snuzeId = null | |
$_snuzeClass = null | |
A SubredditListing is a more strict implementation of Listing, which only accepts Subreddit objects as its children.
This file is part of Snuze, a PHP client for the Reddit API. Copyright 2019 Shaun Cummiskey shaun @sha unc.c omhttps://shaunc.com/ Repository: https://github.com/snuze/snuze/ Documentation: https://snuze.shaunc.com/
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
snuze\Reddit\Listing\SubredditListing::add | ( | $subreddit | ) |
Add a Subreddit to the collection.
Overrides parent to enforce that only Subreddit objects may be added.
\snuze\Reddit\Thing\Subreddit | $subreddit | A Subreddit object to add to the collection |