public function __construct($facebook) { Type::enforce($facebook, 'Facebook\\Facebook'); // TODO throw if $facebook doesn't have a default_access_token $this->facebook = $facebook; }